31 unsigned magnitude = line < 0 ? 0u -
static_cast<unsigned>(line)
32 :
static_cast<unsigned>(line);
34 *--p =
static_cast<char>(
'0' + magnitude % 10u);
36 }
while (magnitude != 0u);
74 default: tag =
"): INFO: ";
break;
83 body << file <<
"(" << line << tag << user_payload.
c_str();
102 const char *p = file;
103 const char *last_slash =
nullptr;
107 if (p[0] ==
's' && p[1] ==
'r' && p[2] ==
'c' && (p[3] ==
'/' || p[3] ==
'\\')) {
111 if (*p ==
'/' || *p ==
'\\') {
119 return last_slash + 1;
ISR-safe async logger using SPSC queue backend (zero heap allocation)
const char * c_str() const FL_NO_EXCEPT
Centralized logging categories for FastLED hardware interfaces and subsystems.
FL_NO_INLINE const char * log_kind_name(log_kind kind) FL_NO_EXCEPT
FL_NO_INLINE void log_emit_prefix(log_kind kind, const char *file, int line) FL_NO_EXCEPT
FL_NO_INLINE void log_emit_newline() FL_NO_EXCEPT
FL_NO_INLINE void log_emit(log_kind kind, const char *file, int line, fl::sstream &body) FL_NO_EXCEPT
FL_NO_INLINE void log_emit_literal(log_kind kind, const char *file, int line, const char *body) FL_NO_EXCEPT
Compile-time linker keep-alive hook for a single fl::Bus.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
void print(const char *str) FL_NO_EXCEPT
void println(const char *str) FL_NO_EXCEPT
constexpr int numeric_limits< char >::digits
const char * fastled_file_offset(const char *file) FL_NO_EXCEPT
Base definition for an LED controller.