| 219 | } |
| 220 | |
| 221 | static LuaProfilerScopeState* PopLuaProfilerScope(lua_State* L, LuaProfilerScope* out_scope) |
| 222 | { |
| 223 | LuaProfilerScopeState* state = FindLuaProfilerScopeState(L); |
| 224 | if (state == 0 || state->m_Scopes.Empty()) |
| 225 | { |
| 226 | return 0; |
| 227 | } |
| 228 | |
| 229 | *out_scope = state->m_Scopes.Back(); |
| 230 | state->m_Scopes.Pop(); |
| 231 | return state; |
| 232 | } |
| 233 | |
| 234 | static void AutoCloseLuaProfilerScopes() |
| 235 | { |
no test coverage detected