macro.h 742 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef VIRTUALMATH_MACRO_H
  2. #define VIRTUALMATH_MACRO_H
  3. #include <stdio.h>
  4. #include <inttypes.h>
  5. #include <stdint.h>
  6. #include <assert.h>
  7. #include <errno.h>
  8. #include <math.h>
  9. #include <string.h>
  10. #include <stdlib.h>
  11. #include <stdarg.h>
  12. #include <sys/stat.h>
  13. #include <ctype.h>
  14. #include <setjmp.h>
  15. #include <signal.h>
  16. #include <wchar.h>
  17. #include <wctype.h>
  18. #include <locale.h>
  19. #include <getopt.h>
  20. #include <unistd.h>
  21. #include <dlfcn.h>
  22. #include "ffi.h"
  23. // 布尔逻辑的定义
  24. #define bool int
  25. #define true 1
  26. #define false 0
  27. #define NUL ((char)0)
  28. #define WNUL ((wchar_t)0)
  29. #ifdef NDEBUG
  30. #define errasert(e) ((void)0)
  31. #else
  32. #define errasert(e) __assert_fail (#e, __FILE__, __LINE__, __ASSERT_FUNCTION)
  33. #endif
  34. #endif //VIRTUALMATH_MACRO_H