| 140 | } |
| 141 | |
| 142 | void LuaWrapper::SaveInTable(lua_State *state, void *node, LuaToken *tname) |
| 143 | { |
| 144 | // stack: [info] |
| 145 | lua_rawgetp(state, LUA_REGISTRYINDEX, tname); |
| 146 | |
| 147 | lua_pushvalue(state, -2); |
| 148 | lua_rawsetp(state, -2, node); |
| 149 | |
| 150 | lua_pushvalue(state, -2); |
| 151 | lua_pushlightuserdata(state, node); |
| 152 | lua_rawset(state, -3); |
| 153 | |
| 154 | lua_pop(state, 1); |
| 155 | // stack: [info] |
| 156 | } |
| 157 | |
| 158 | void LuaWrapper::SaveTypeInfo(lua_State *state, void *node) |
| 159 | { |
nothing calls this directly
no test coverage detected