FastLED 3.9.15
Loading...
Searching...
No Matches
warn.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/dbg.h"
4#include "fl/sketch_macros.h"
5
6#ifndef FASTLED_WARN
7// in the future this will do something
8#define FASTLED_WARN FASTLED_DBG
9#define FASTLED_WARN_IF FASTLED_DBG_IF
10#endif
11
12#ifndef FL_WARN
13#if SKETCH_HAS_LOTS_OF_MEMORY
14#define FL_WARN FASTLED_WARN
15#define FL_WARN_IF FASTLED_WARN_IF
16#else
17// No-op macros for memory-constrained platforms
18#define FL_WARN(X) do { } while(0)
19#define FL_WARN_IF(COND, MSG) do { } while(0)
20#endif
21#endif