Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/defold/defold
/ GetInstance
Function
GetInstance
engine/script/src/script.cpp:702–709 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
700
}
701
702
void GetInstance(lua_State* L)
703
{
704
lua_pushinteger(L, (lua_Integer)INSTANCE_NAME_HASH);
705
// [-1] name_hash
706
707
lua_gettable(L, LUA_GLOBALSINDEX);
708
// [-1] instance
709
}
710
711
void SetInstance(lua_State* L)
712
{
Callers
15
ResolvePath
Function · 0.70
GetURL
Function · 0.70
GetUserData
Function · 0.70
IsValidInstance
Function · 0.70
GetInstanceContextTable
Function · 0.70
GetInstanceId
Function · 0.70
CreateCallback
Function · 0.70
IsCallbackInstanceValid
Function · 0.70
SetupCallback
Function · 0.70
GetScript
Function · 0.50
ScriptInstance_Check
Function · 0.50
ScriptInstanceGetURLCB
Function · 0.50
Calls
2
lua_pushinteger
Function · 0.85
lua_gettable
Function · 0.85
Tested by
5
TestRef
Function · 0.40
TEST_F
Function · 0.40
TestRef
Function · 0.40
TestRef
Function · 0.40
TearDown
Method · 0.40