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

Function GetScriptContext

engine/script/src/script.cpp:654–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

652 }
653
654 HContext GetScriptContext(lua_State* L)
655 {
656 GetGlobal(L, SCRIPT_CONTEXT_HASH);
657 HContext context = (HContext)lua_touserdata(L, -1);
658 lua_pop(L, 1);
659 return context;
660 }
661
662 uint32_t SetGlobal(lua_State* L, const char* name)
663 {

Callers 9

LoadModuleFunction · 0.70
GetConfigFileFunction · 0.70
Sys_LoadResourceFunction · 0.70
CreateLuaHashUserdataFunction · 0.70
PushHashFunction · 0.70
ReleaseHashFunction · 0.70
Hash_gcFunction · 0.70
ResRenderScriptCreateFunction · 0.50
ResRenderScriptRecreateFunction · 0.50

Calls 2

GetGlobalFunction · 0.85
lua_touserdataFunction · 0.85

Tested by

no test coverage detected