FastLED 3.9.15
Loading...
Searching...
No Matches
channel_events.cpp.hpp
Go to the documentation of this file.
2#include "fl/stl/singleton.h"
3
4namespace fl {
5
6// Out-of-line `instance()` only exists in the full event-firing build.
7// Under FASTLED_DISABLE_CHANNEL_EVENTS the header-defined inline
8// `instance()` body fires (returns a static no-op object), and the
9// `fl::Singleton<ChannelEvents>` template is not instantiated — letting
10// `--gc-sections` drop both that template's machinery and the singleton
11// itself. See #2931 / #2886.
12#if !defined(FASTLED_DISABLE_CHANNEL_EVENTS) || !FASTLED_DISABLE_CHANNEL_EVENTS
16#endif
17
18} // namespace fl
static T & instance() FL_NOEXCEPT
Definition singleton.h:41
Base definition for an LED controller.
Definition crgb.hpp:179
static ChannelEvents & instance()
Singleton event router for Channel lifecycle events.