| 228 | } |
| 229 | |
| 230 | void RegisterSystemFunc(const char* name, script_func_t func) |
| 231 | { |
| 232 | lua_init(); |
| 233 | // EXIT_IF(GlobalGetVar(name).IsNil()); |
| 234 | |
| 235 | lua_register(g_lua_state, name, reinterpret_cast<lua_CFunction>(func)); |
| 236 | } |
| 237 | |
| 238 | void RegisterFunc(const char* name, script_func_t func, help_func_t help) |
| 239 | { |
no test coverage detected