123456789101112131415161718192021 |
- #include "__virtualmath.h"
- #include "clib.h"
- static struct InFo{
- char *name;
- Registered reg;
- } ManagerInFo[] = {{"sys", registeredSysFunction},
- {NULL, NULL}};
- bool checkCLib(char *file) {
- for (struct InFo *info = ManagerInFo; info->name != NULL; info++)
- if (eqString(file, info->name))
- return true;
- return false;
- }
- void runClib(char *file, struct LinkValue *belong, INTER_FUNCTIONSIG_CORE){
- for (struct InFo *info = ManagerInFo; info->name != NULL; info++)
- if (eqString(file, info->name))
- info->reg(CALL_REGISTERED_FUNCTION(belong, var_list));
- }
|