Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_Animate
Function · 0.85
LoadScript
Function · 0.85
NewScript
Function · 0.85
NewScriptInstance
Function · 0.85
TestRef
Function · 0.85
Sys_SetDebuggerLightweightHook
Function · 0.85
Initialize
Function · 0.85
NewScriptWorld
Function · 0.85
CreateCallback
Function · 0.85
NewUserType
Function · 0.85
TEST_F
Function · 0.85
CreateAndPushInstance
Function · 0.85
Calls
1
luaL_ref
Function · 0.85
Tested by
10
TestRef
Function · 0.68
NewUserType
Function · 0.68
TEST_F
Function · 0.68
CreateAndPushInstance
Function · 0.68
TestScriptExtensionInitialize
Function · 0.68
TestScriptExtensionNewScriptWorld
Function · 0.68
CreateScriptInstance
Function · 0.68
TestRef
Function · 0.68
TestRef
Function · 0.68
SetUp
Method · 0.68