MCPcopy Create free account
hub / github.com/InoriRus/Kyty / RegisterSystemFunc

Function RegisterSystemFunc

source/lib/Scripts/src/Scripts.cpp:230–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230void 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
238void RegisterFunc(const char* name, script_func_t func, help_func_t help)
239{

Callers 1

scripts_file_lib_regFunction · 0.85

Calls 1

lua_initFunction · 0.85

Tested by

no test coverage detected