MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaL_unref

Function luaL_unref

src/Chain/libraries/glua/lauxlib.cpp:619–627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617
618
619LUALIB_API void luaL_unref(lua_State *L, int t, int ref) {
620 if (ref >= 0) {
621 t = lua_absindex(L, t);
622 lua_rawgeti(L, t, freelist);
623 lua_rawseti(L, t, ref); /* t[ref] = t[freelist] */
624 lua_pushinteger(L, ref);
625 lua_rawseti(L, t, freelist); /* t[freelist] = ref */
626 }
627}
628
629/* }====================================================== */
630

Callers

nothing calls this directly

Calls 4

lua_absindexFunction · 0.85
lua_rawgetiFunction · 0.85
lua_rawsetiFunction · 0.85
lua_pushintegerFunction · 0.85

Tested by

no test coverage detected