| 175 | } |
| 176 | |
| 177 | LUA_API int xlua_ref_indirect(lua_State *L, int indirectRef) { |
| 178 | int ret = 0; |
| 179 | lua_rawgeti(L, LUA_REGISTRYINDEX, indirectRef); |
| 180 | lua_pushvalue(L, -2); |
| 181 | ret = luaL_ref(L, -2); |
| 182 | lua_pop(L, 2); |
| 183 | return ret; |
| 184 | } |
| 185 | |
| 186 | LUA_API void xlua_getref_indirect(lua_State *L, int indirectRef, int reference) { |
| 187 | lua_rawgeti(L, LUA_REGISTRYINDEX, indirectRef); |
nothing calls this directly
no test coverage detected