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

Method checkStackHealth

src/platforms/arm/teensy/coroutine_teensy.impl.hpp:252–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

250}
251
252bool CoroutinePlatformTeensy::checkStackHealth(void* ctx) const FL_NOEXCEPT {
253 if (!ctx) return true;
254 auto* state = static_cast<TeensyContextState*>(ctx);
255 if (!state->stack_base) return true; // runner has no managed stack
256 const fl::u32* canary =
257 reinterpret_cast<const fl::u32*>(state->stack_base); // ok reinterpret cast
258 return *canary == kStackCanaryValue;
259}
260
261fl::u32 CoroutinePlatformTeensy::micros() const FL_NOEXCEPT {
262 return static_cast<fl::u32>(::micros());

Callers 1

suspendMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected