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

Function FindLuaProfilerScopeState

engine/profiler/src/profiler.cpp:96–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96static LuaProfilerScopeState* FindLuaProfilerScopeState(lua_State* L)
97{
98 for (LuaProfilerScopeState* state = g_LuaProfilerScopeStates; state != 0; state = state->m_Next)
99 {
100 if (state->m_L == L)
101 {
102 return state;
103 }
104 }
105 return 0;
106}
107
108static LuaProfilerScopeState* GetOrCreateLuaProfilerScopeState(lua_State* L)
109{

Callers 2

PopLuaProfilerScopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected