ScopedTrace static method implementations
| 51 | |
| 52 | // ScopedTrace static method implementations |
| 53 | void ScopedTrace::push(const char* function, int line) FL_NOEXCEPT { |
| 54 | if (!function) { |
| 55 | return; // Ignore null function names |
| 56 | } |
| 57 | |
| 58 | auto& storage = getTraceStorage(); |
| 59 | |
| 60 | // Always increment depth counter (tracks true depth even on overflow) |
| 61 | storage.stackDepth++; |
| 62 | |
| 63 | // Only push to storage if we have capacity |
| 64 | if (storage.callStack.size() < FL_STACK_TRACE_MAX_DEPTH) { |
| 65 | storage.callStack.push_back(TraceEntry(function, line)); |
| 66 | } |
| 67 | // If size >= MAX_DEPTH, we're in overflow - just track depth |
| 68 | } |
| 69 | |
| 70 | void ScopedTrace::pop() FL_NOEXCEPT { |
| 71 | auto& storage = getTraceStorage(); |
nothing calls this directly
no test coverage detected