1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef FUNC_H_ #define FUNC_H_ #include <vector> #include "value.h" using namespace std; struct FuncInfo { const char* name; void (*func)(const vector<Value*>& args, Evaluator* ev, string* s); int arity; }; void InitFuncTable(); void QuitFuncTable(); FuncInfo* GetFuncInfo(StringPiece name); #endif // FUNC_H_