| 605 | }; |
| 606 | |
| 607 | static void OpenMatinfo(lua_State *state) |
| 608 | { |
| 609 | luaL_getsubtable(state, lua_gettop(state), "matinfo"); |
| 610 | |
| 611 | lua_dup(state); |
| 612 | lua_rawsetp(state, LUA_REGISTRYINDEX, &DFHACK_MATINFO_TOKEN); |
| 613 | |
| 614 | lua_dup(state); |
| 615 | luaL_setfuncs(state, dfhack_matinfo_funcs, 1); |
| 616 | |
| 617 | lua_dup(state); |
| 618 | lua_setfield(state, -2, "__index"); |
| 619 | |
| 620 | lua_pop(state, 1); |
| 621 | } |
| 622 | |
| 623 | /************** |
| 624 | * Pen object * |
no test coverage detected