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

Method SetLuaContext

engine/engine/src/engine.cpp:188–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 ExtensionParamsFinalize(&m_Params);
187 }
188 void SetLuaContext(dmScript::HContext script_context)
189 {
190 m_Params.m_L = dmScript::GetLuaState(script_context);
191 ExtensionParamsSetContext(&m_Params, "script", script_context);
192 ExtensionParamsSetContext(&m_Params, "lua", m_Params.m_L);
193 }
194
195 operator ExtensionParams* ()
196 {

Callers 3

DeleteFunction · 0.80
engine.cppFile · 0.80
StepFrameFunction · 0.80

Calls 2

GetLuaStateFunction · 0.50

Tested by

no test coverage detected