MCPcopy Create free account
hub / github.com/defold/defold / Ref

Function Ref

engine/script/src/script.cpp:1578–1582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1576 }
1577
1578 int Ref(lua_State* L, int table)
1579 {
1580 ++g_LuaReferenceCount;
1581 return luaL_ref(L, table);
1582 }
1583
1584 void Unref(lua_State* L, int table, int reference)
1585 {

Callers 15

Script_AnimateFunction · 0.85
LoadScriptFunction · 0.85
NewScriptFunction · 0.85
NewScriptInstanceFunction · 0.85
TestRefFunction · 0.85
InitializeFunction · 0.85
NewScriptWorldFunction · 0.85
CreateCallbackFunction · 0.85
NewUserTypeFunction · 0.85
TEST_FFunction · 0.85
CreateAndPushInstanceFunction · 0.85

Calls 1

luaL_refFunction · 0.85

Tested by 10

TestRefFunction · 0.68
NewUserTypeFunction · 0.68
TEST_FFunction · 0.68
CreateAndPushInstanceFunction · 0.68
CreateScriptInstanceFunction · 0.68
TestRefFunction · 0.68
TestRefFunction · 0.68
SetUpMethod · 0.68