| 97 | } |
| 98 | |
| 99 | static void LookupInTable(lua_State *state, LuaToken *tname) |
| 100 | { |
| 101 | lua_rawgetp(state, LUA_REGISTRYINDEX, tname); |
| 102 | lua_swap(state); |
| 103 | lua_rawget(state, -2); |
| 104 | lua_remove(state, -2); |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * Look up the key on the stack in DFHACK_TYPETABLE; |
no test coverage detected