MCPcopy Create free account
hub / github.com/FastLED/FastLED / push

Method push

src/fl/system/trace.cpp.hpp:53–68  ·  view source on GitHub ↗

ScopedTrace static method implementations

Source from the content-addressed store, hash-verified

51
52// ScopedTrace static method implementations
53void 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
70void ScopedTrace::pop() FL_NOEXCEPT {
71 auto& storage = getTraceStorage();

Callers

nothing calls this directly

Calls 3

TraceEntryClass · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected