| 951 | }; |
| 952 | |
| 953 | static 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 * |
no test coverage detected