FastLED 3.6.0
Loading...
Searching...
No Matches
cpp_compat.h
Go to the documentation of this file.
1
3
4#ifndef __INC_CPP_COMPAT_H
5#define __INC_CPP_COMPAT_H
6
7#include "FastLED.h"
8
9#if __cplusplus <= 199711L
10
13#define static_assert(expression, message)
14
17#define constexpr const
18
19#else
20
21// things that we can turn on if we're in a C++11 environment
22#endif
23
24#if __cplusplus < 201703L
25#define FASTLED_REGISTER register
26#else
27 #ifdef FASTLED_REGISTER
28 #undef FASTLED_REGISTER
29 #endif
30#define FASTLED_REGISTER
31
32#endif
33
34#endif
central include file for FastLED, defines the CFastLED class/object