FastLED 3.10.8
Loading...
Searching...
No Matches

◆ FL_DISABLE_WARNING()

FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING ( unused- function)

Definition at line 9 of file type_traits.cpp.hpp.

16 {
17FL_MAYBE_UNUSED void __compile_test() FL_NO_EXCEPT {
18 FL_STATIC_ASSERT(fl::is_integral<int>::value, "int should be integral");
20 "float should not be integral");
21 FL_STATIC_ASSERT(fl::is_integral<bool>::value, "bool should be integral");
22 FL_STATIC_ASSERT(fl::is_integral<char>::value, "char should be integral");
24 "unsigned char should be integral");
26 "signed char should be integral");
27 FL_STATIC_ASSERT(fl::is_integral<short>::value, "short should be integral");
29 "unsigned short should be integral");
30 FL_STATIC_ASSERT(fl::is_integral<long>::value, "long should be integral");
32 "unsigned long should be integral");
34 "long long should be integral");
36 "unsigned long long should be integral");
38 "int* should not be integral");
40 "float* should not be integral");
42 "void should not be integral");
44 "void* should not be integral");
46 "const int should be integral");
48 "const float should not be integral");
50 "const char should be integral");
52 "const unsigned char should be integral");
54 "const signed char should be integral");
56 "const short should be integral");
58 "const unsigned short should be integral");
60 "const long should be integral");
62 "const unsigned long should be integral");
64 "const long long should be integral");
66 "const unsigned long long should be integral");
67
68 // volatile
70 "volatile int should be integral");
72 "volatile float should not be integral");
74 "volatile char should be integral");
75
76 // ref
78 "unsigned char& should be integral");
80 "const unsigned char& should be integral");
81
82 // fixed width int types from fl/int.h
83 FL_STATIC_ASSERT(fl::is_integral<fl::i8>::value, "i8 should be integral");
85 "u8 should be integral");
87 "i16 should be integral");
89 "u16 should be integral");
91 "i32 should be integral");
93 "u32 should be integral");
95 "fl::i64 should be integral");
97 "fl::u64 should be integral");
99 "i8* should not be integral");
101 "u8* should not be integral");
103 "uint should be integral");
104
105 // fixed width int types from fl/stl/stdint.h
106 FL_STATIC_ASSERT(fl::is_integral<fl::i8>::value, "fl::i8 should be integral");
108 "fl::u8 should be integral");
110 "fl::i16 should be integral");
112 "fl::u16 should be integral");
114 "fl::i32 should be integral");
116 "fl::u32 should be integral");
118 "i64 should be integral");
120 "u64 should be integral");
122 "fl::i8* should not be integral");
124 "fl::u8* should not be integral");
125}
126} // namespace
#define FL_MAYBE_UNUSED
#define FL_NO_EXCEPT
#define FL_STATIC_ASSERT(...)

References FL_MAYBE_UNUSED, FL_NO_EXCEPT, FL_STATIC_ASSERT, and fl::is_integral< T >::value.