MCPcopy 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

ResolvePathFunction · 0.70
GetURLFunction · 0.70
GetUserDataFunction · 0.70
IsValidInstanceFunction · 0.70
GetInstanceContextTableFunction · 0.70
GetInstanceIdFunction · 0.70
CreateCallbackFunction · 0.70
IsCallbackInstanceValidFunction · 0.70
SetupCallbackFunction · 0.70
GetScriptFunction · 0.50
ScriptInstance_CheckFunction · 0.50
ScriptInstanceGetURLCBFunction · 0.50

Calls 2

lua_pushintegerFunction · 0.85
lua_gettableFunction · 0.85

Tested by 5

TestRefFunction · 0.40
TEST_FFunction · 0.40
TestRefFunction · 0.40
TestRefFunction · 0.40
TearDownMethod · 0.40