FastLED 3.9.15
Loading...
Searching...
No Matches
deprecated.h
Go to the documentation of this file.
1#pragma once
2
3#if defined(__clang__)
4// Clang: Do not mark classes as deprecated
5 #define FASTLED_DEPRECATED_CLASS(msg)
6 #ifndef FASTLED_DEPRECATED
7 #define FASTLED_DEPRECATED(msg) __attribute__((deprecated(msg)))
8 #endif
9#elif defined(__GNUC__) // GCC (but not Clang)
10 #ifndef FASTLED_DEPRECATED
11 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)
12 #define FASTLED_DEPRECATED(msg) __attribute__((deprecated(msg)))
13 #define FASTLED_DEPRECATED_CLASS(msg) __attribute__((deprecated(msg)))
14 #else
15 #define FASTLED_DEPRECATED(msg) __attribute__((deprecated))
16 #define FASTLED_DEPRECATED_CLASS(msg)
17 #endif
18 #endif
19#else // Other compilers
20 #ifndef FASTLED_DEPRECATED
21 #define FASTLED_DEPRECATED(msg)
22 #endif
23 #define FASTLED_DEPRECATED_CLASS(msg)
24#endif