macro.h 439 B

12345678910111213141516171819202122232425
  1. /*
  2. * 文件名: macro.h
  3. * 目标: 定义公共宏
  4. */
  5. #ifndef MACRO__H
  6. #define MACRO__H
  7. #include <stdbool.h>
  8. #include <inttypes.h>
  9. #ifndef __bool_true_false_are_defined
  10. #define bool int
  11. #define true (1)
  12. #define false (0)
  13. #endif
  14. #define NUL ((char)0)
  15. #define W_NUL ((wchar_t)0)
  16. typedef int32_t FileLine; // 文件航海
  17. typedef int8_t *FilePath; // 文件路径
  18. typedef uint32_t ByteCodeUint; // ByteCode int
  19. #endif //MACRO__H