__macro.h 546 B

1234567891011121314151617181920212223242526
  1. #ifndef VIRTUALMATH___MACRO_H
  2. #define VIRTUALMATH___MACRO_H
  3. #include <stdio.h>
  4. #include <string.h>
  5. #include <stdlib.h>
  6. #include <stdarg.h>
  7. #define bool int
  8. #define true 1
  9. #define false 0
  10. #define PASS do{}while(0)
  11. #define NUMBER_TYPE long int
  12. #define HASH_INDEX unsigned int
  13. #define INTER_FUNCTIONSIG Statement *st, Inter *inter, VarList *var_list
  14. #define CALL_INTER_FUNCTIONSIG(st, var_list) st, inter, var_list
  15. #define freeBase(element, return_) do{ \
  16. if (element == NULL){ \
  17. goto return_; \
  18. } \
  19. }while(0) \
  20. #endif //VIRTUALMATH___MACRO_H