macro.h 479 B

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