| 377 | }; |
| 378 | |
| 379 | static void OpenPersistent(lua_State *state) |
| 380 | { |
| 381 | luaL_getsubtable(state, lua_gettop(state), "persistent"); |
| 382 | |
| 383 | lua_dup(state); |
| 384 | luaL_setfuncs(state, dfhack_persistent_funcs, 1); |
| 385 | |
| 386 | lua_dup(state); |
| 387 | lua_setfield(state, -2, "__index"); |
| 388 | |
| 389 | lua_pop(state, 1); |
| 390 | } |
| 391 | |
| 392 | /************************ |
| 393 | * Material info lookup * |
no test coverage detected