macro.hpp 566 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * 文件名: macro.h
  3. * 目标: 定义公共宏 和 公共头文件
  4. */
  5. #ifndef AFUN_MACRO_HPP
  6. #define AFUN_MACRO_HPP
  7. #include <stdbool.h>
  8. #include <inttypes.h>
  9. #include <stdarg.h>
  10. #include "base.h"
  11. #ifndef __bool_true_false_are_defined
  12. #define bool int
  13. #define true (1)
  14. #define false (0)
  15. #endif
  16. #define NUL ((char)0)
  17. #define W_NUL ((wchar_t)0)
  18. namespace aFuntool {
  19. typedef uint32_t FileLine; // 文件行号
  20. typedef std::string &FilePath; // 文件路径
  21. typedef const std::string &ConstFilePath; // 文件路径
  22. }
  23. #endif //AFUN_MACRO_HPP