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

Function OpenPen

library/LuaApi.cpp:953–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

951};
952
953static void OpenPen(lua_State *state)
954{
955 luaL_getsubtable(state, lua_gettop(state), "pen");
956
957 lua_dup(state);
958 lua_rawsetp(state, LUA_REGISTRYINDEX, &DFHACK_PEN_TOKEN);
959
960 luaL_setfuncs(state, dfhack_pen_funcs, 0);
961
962 lua_pop(state, 1);
963}
964
965/******************
966* PenArray object *

Callers 1

OpenDFHackApiFunction · 0.85

Calls 5

luaL_getsubtableFunction · 0.85
lua_gettopFunction · 0.85
lua_dupFunction · 0.85
lua_rawsetpFunction · 0.85
luaL_setfuncsFunction · 0.85

Tested by

no test coverage detected