| 94 | } |
| 95 | |
| 96 | static 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 | |
| 108 | static LuaProfilerScopeState* GetOrCreateLuaProfilerScopeState(lua_State* L) |
| 109 | { |
no outgoing calls
no test coverage detected