__func.h 550 B

1234567891011121314151617181920212223242526
  1. #ifndef AFUN__FUNC_H
  2. #define AFUN__FUNC_H
  3. #include "macro.h"
  4. #include "func.h"
  5. #include "__object.h"
  6. #include "__code.h"
  7. struct ArgCodeList {
  8. void *info; // info信息
  9. size_t size;
  10. struct af_Code *code;
  11. bool free_code; // code 是否释放
  12. bool run_in_func; // 是否在函数的变量空间内运行
  13. struct af_Object *result; // 有gc引用计数
  14. struct ArgCodeList *next;
  15. };
  16. struct ArgList {
  17. char *name;
  18. struct af_Object *obj; // 有gc引用计数
  19. struct ArgList *next;
  20. };
  21. #endif //AFUN__FUNC_H