MCPcopy Create free account
hub / github.com/Tencent/xLua / xlua_ref_indirect

Function xlua_ref_indirect

WebGLPlugins/xlua.c:177–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177LUA_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
186LUA_API void xlua_getref_indirect(lua_State *L, int indirectRef, int reference) {
187 lua_rawgeti(L, LUA_REGISTRYINDEX, indirectRef);

Callers

nothing calls this directly

Calls 3

lua_rawgetiFunction · 0.85
lua_pushvalueFunction · 0.85
luaL_refFunction · 0.85

Tested by

no test coverage detected