| 850 | } |
| 851 | |
| 852 | void Plugin::push_function(lua_State *state, LuaFunction *fn) |
| 853 | { |
| 854 | lua_rawgetp(state, LUA_REGISTRYINDEX, &LuaWrapper::DFHACK_TYPETABLE_TOKEN); |
| 855 | lua_pushlightuserdata(state, NULL); |
| 856 | lua_pushfstring(state, "%s.%s()", name.c_str(), fn->name.c_str()); |
| 857 | lua_pushlightuserdata(state, fn); |
| 858 | lua_pushcclosure(state, lua_fun_wrapper, 4); |
| 859 | } |
| 860 | |
| 861 | PluginManager::PluginManager(Core * core) : core(core) |
| 862 | { |
nothing calls this directly
no test coverage detected