FastLED 3.10.8
Loading...
Searching...
No Matches

◆ makeName()

fl::string fl::RxChannel::makeName ( i32 id,
const fl::string & config_name )
staticprivate

Definition at line 56 of file channel.cpp.hpp.

56 {
57 if (!config_name.empty()) {
58 return config_name;
59 }
60 // Mirrors Channel::makeName's release-build gate (#2942/#2943).
61 // mName is consumed only by FL_WARN/FL_ERROR sites that collapse to
62 // do-while-0 when FASTLED_LOG_VERBOSITY=0 (NDEBUG default per #2890),
63 // so the string + fl::to_string<i64> + heap concat run for nothing
64 // in release. See #2954.
65#if FASTLED_LOG_RUNTIME_ENABLED
66 return "RxChannel_" + fl::to_string(static_cast<i64>(id));
67#else
68 (void)id;
69 return {};
70#endif
71}
bool empty() const FL_NO_EXCEPT
string to_string(T value) FL_NO_EXCEPT
Definition string.h:459
fl::i64 i64
Definition stdint.h:221

References fl::FL_NO_EXCEPT, and fl::to_string().

Referenced by RxChannel(), and fl::adl_barrier::make_shared.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: