| 408 | } |
| 409 | |
| 410 | void LuaEnvironment::add_module_function(const char *module, const char *name, const lua_CFunction func) |
| 411 | { |
| 412 | luaL_Reg entry[2]; |
| 413 | entry[0].name = name; |
| 414 | entry[0].func = func; |
| 415 | entry[1].name = NULL; |
| 416 | entry[1].func = NULL; |
| 417 | |
| 418 | luaL_register(L, module, entry); |
| 419 | lua_pop(L, 1); |
| 420 | } |
| 421 | |
| 422 | void LuaEnvironment::add_module_function(const char *module, const char *name, const char *func) |
| 423 | { |
no test coverage detected