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

Function OpenPenArray

library/LuaApi.cpp:1063–1073  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1061};
1062
1063static void OpenPenArray(lua_State *state)
1064{
1065 luaL_getsubtable(state, lua_gettop(state), "penarray");
1066
1067 lua_dup(state);
1068 lua_rawsetp(state, LUA_REGISTRYINDEX, &DFHACK_PENARRAY_TOKEN);
1069
1070 luaL_setfuncs(state, dfhack_penarray_funcs, 0);
1071
1072 lua_pop(state, 1);
1073}
1074
1075/********************
1076 * Random generator *

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