FastLED 3.9.15
Loading...
Searching...
No Matches

◆ makeName()

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

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

49 {
50 if (!config_name.empty()) {
51 return config_name;
52 }
53 // Mirrors Channel::makeName's release-build gate (#2942/#2943).
54 // mName is consumed only by FL_WARN/FL_ERROR sites that collapse to
55 // do-while-0 when FASTLED_LOG_VERBOSITY=0 (NDEBUG default per #2890),
56 // so the string + fl::to_string<i64> + heap concat run for nothing
57 // in release. See #2954.
58#if FASTLED_LOG_RUNTIME_ENABLED
59 return "RxChannel_" + fl::to_string(static_cast<i64>(id));
60#else
61 (void)id;
62 return {};
63#endif
64}
bool empty() const FL_NOEXCEPT
string to_string(T value) FL_NOEXCEPT
Definition string.h:450
fl::i64 i64
Definition s16x16x4.h:222

References FL_NOEXCEPT, and fl::to_string().

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

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