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