macro.h 322 B

12345678910111213141516171819202122
  1. /*
  2. * 文件名: macro.h
  3. * 目标: 定义公共宏
  4. */
  5. #ifndef MACRO__H
  6. #define MACRO__H
  7. #include <stdbool.h>
  8. #ifndef __bool_true_false_are_defined
  9. #define bool int
  10. #define true (1)
  11. #define false (0)
  12. #endif
  13. #define NUL ((char)0)
  14. #define W_NUL ((wchar_t)0)
  15. typedef int fline;
  16. typedef char *fpath;
  17. #endif //MACRO__H