MCPcopy Create free account
hub / github.com/DFHack/dfhack / OpenPersistent

Function OpenPersistent

library/LuaApi.cpp:379–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377};
378
379static void OpenPersistent(lua_State *state)
380{
381 luaL_getsubtable(state, lua_gettop(state), "persistent");
382
383 lua_dup(state);
384 luaL_setfuncs(state, dfhack_persistent_funcs, 1);
385
386 lua_dup(state);
387 lua_setfield(state, -2, "__index");
388
389 lua_pop(state, 1);
390}
391
392/************************
393 * Material info lookup *

Callers 1

OpenDFHackApiFunction · 0.85

Calls 5

luaL_getsubtableFunction · 0.85
lua_gettopFunction · 0.85
lua_dupFunction · 0.85
luaL_setfuncsFunction · 0.85
lua_setfieldFunction · 0.85

Tested by

no test coverage detected