macro.h 756 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 <time.h>
  7. #include <assert.h>
  8. #include <errno.h>
  9. #include <math.h>
  10. #include <string.h>
  11. #include <stdlib.h>
  12. #include <stdarg.h>
  13. #include <sys/stat.h>
  14. #include <ctype.h>
  15. #include <setjmp.h>
  16. #include <signal.h>
  17. #include <wchar.h>
  18. #include <wctype.h>
  19. #include <locale.h>
  20. #include <getopt.h>
  21. #include <unistd.h>
  22. #include <dlfcn.h>
  23. #include <ffi.h>
  24. // 布尔逻辑的定义
  25. #define bool int
  26. #define true 1
  27. #define false 0
  28. #define NUL ((char)0)
  29. #define WNUL ((wchar_t)0)
  30. #ifdef NDEBUG
  31. #define err_asert(e) ((void)0)
  32. #else
  33. #define err_asert(e) fprintf(stderr, "%s %s %d\n", #e, __FILE__, __LINE__)
  34. #endif
  35. #endif //VIRTUALMATH_MACRO_H