10#ifndef FL_DBG_PRINTLN_DECLARED
11#define FL_DBG_PRINTLN_DECLARED
22 const char *last_slash =
nullptr;
25 if (p[0] ==
's' && p[1] ==
'r' && p[2] ==
'c' && p[3] ==
'/') {
36 return last_slash + 1;
42#if __EMSCRIPTEN__ || !defined(RELEASE) || defined(FASTLED_TESTING)
43#define FASTLED_FORCE_DBG 1
47#ifndef FASTLED_FORCE_DBG
49#define FASTLED_HAS_DBG 0
50#define _FASTLED_DGB(X) do { if (false) { fl::println(""); } } while(0)
53#define FASTLED_HAS_DBG 1
54#define _FASTLED_DGB(X) \
56 (fl::StrStream() << (fl::fastled_file_offset(__FILE__)) \
57 << "(" << int(__LINE__) << "): " << X) \
61#define FASTLED_DBG(X) _FASTLED_DGB(X)
64#define FASTLED_DBG_IF(COND, MSG) \
void println(const char *str)
const char * fastled_file_offset(const char *file)