| 153 | } |
| 154 | |
| 155 | static void DeleteEmptyLuaProfilerScopeStates() |
| 156 | { |
| 157 | LuaProfilerScopeState** state_ptr = &g_LuaProfilerScopeStates; |
| 158 | while (*state_ptr != 0) |
| 159 | { |
| 160 | LuaProfilerScopeState* state = *state_ptr; |
| 161 | if (!ShouldRetainLuaProfilerScopeState(state)) |
| 162 | { |
| 163 | *state_ptr = state->m_Next; |
| 164 | delete state; |
| 165 | } |
| 166 | else |
| 167 | { |
| 168 | state_ptr = &state->m_Next; |
| 169 | } |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | template <typename T> |
| 174 | static void EnsureLuaProfilerCapacity(dmArray<T>* array, uint32_t additional_count, uint32_t min_capacity) |
no test coverage detected