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

Function GetGlobal

engine/script/src/script.cpp:693–700  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

691 }
692
693 void GetGlobal(lua_State*L, uint32_t name_hash)
694 {
695 lua_pushinteger(L, (lua_Integer)name_hash);
696 // [-1] name_hash
697
698 lua_gettable(L, LUA_GLOBALSINDEX);
699 // [-1] instance
700 }
701
702 void GetInstance(lua_State* L)
703 {

Callers 8

GetScriptContextFunction · 0.85
Physics_RayCastAsyncFunction · 0.85
Physics_RayCastFunction · 0.85
Physics_SetGravityFunction · 0.85
Physics_GetGravityFunction · 0.85
Physics_SetEventListenerFunction · 0.85
Physics_UpdateMassFunction · 0.85
ScriptPhysicsFinalizeFunction · 0.85

Calls 2

lua_pushintegerFunction · 0.85
lua_gettableFunction · 0.85

Tested by

no test coverage detected