| 1061 | }; |
| 1062 | |
| 1063 | static 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 * |
no test coverage detected