__macro.h 1.4 KB

1234567891011121314151617181920212223242526272829
  1. #ifndef VIRTUALMATH___MACRO_H
  2. #define VIRTUALMATH___MACRO_H
  3. #include "macro.h"
  4. // PASS语句的定义
  5. #define PASS
  6. #define NUMBER_TYPE long int
  7. #define NUMBER_FORMAT "ld"
  8. #define HASH_INDEX unsigned int
  9. #define INTER_FUNCTIONSIG_CORE struct Inter *inter, struct VarList *var_list
  10. #define INTER_FUNCTIONSIG_NOT_ST struct LinkValue *belong, struct Result *result, INTER_FUNCTIONSIG_CORE
  11. #define INTER_FUNCTIONSIG struct Statement *st, INTER_FUNCTIONSIG_NOT_ST
  12. #define CALL_INTER_FUNCTIONSIG_CORE(var_list) inter, var_list
  13. #define CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong) belong, result, CALL_INTER_FUNCTIONSIG_CORE(var_list)
  14. #define CALL_INTER_FUNCTIONSIG(st, var_list, result, belong) st, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong)
  15. #define run_continue_type(type) (type == not_return || type == operation_return)
  16. #define run_continue(result) (result->type == not_return || result->type == operation_return)
  17. #define freeBase(element, return_) do{if(element == NULL)goto return_;}while(0)
  18. #define OfficialFunctionSig struct Argument *arg, INTER_FUNCTIONSIG_NOT_ST
  19. #define CALL_OfficialFunction(arg, var_list, result, belong) arg, CALL_INTER_FUNCTIONSIG_NOT_ST(var_list, result, belong)
  20. #define RegisteredFunctionSig struct LinkValue *belong, INTER_FUNCTIONSIG_CORE
  21. #define CALL_RegisteredFunction(belong, var_list) belong, CALL_INTER_FUNCTIONSIG_CORE(var_list)
  22. #endif //VIRTUALMATH___MACRO_H