… | |
… | |
104 | =item ECB_CPP11 |
104 | =item ECB_CPP11 |
105 | |
105 | |
106 | True if the implementation claims to be compliant to ISO/IEC 14882:2011 |
106 | True if the implementation claims to be compliant to ISO/IEC 14882:2011 |
107 | (C++11) or any later version. |
107 | (C++11) or any later version. |
108 | |
108 | |
109 | =item ECB_GCC_VERSION(major,minor) |
109 | =item ECB_GCC_VERSION (major, minor) |
110 | |
110 | |
111 | Expands to a true value (suitable for testing in by the preprocessor) |
111 | Expands to a true value (suitable for testing in by the preprocessor) |
112 | if the compiler used is GNU C and the version is the given version, or |
112 | if the compiler used is GNU C and the version is the given version, or |
113 | higher. |
113 | higher. |
114 | |
114 | |
… | |
… | |
185 | |
185 | |
186 | =over 4 |
186 | =over 4 |
187 | |
187 | |
188 | =item ecb_attribute ((attrs...)) |
188 | =item ecb_attribute ((attrs...)) |
189 | |
189 | |
190 | A simple wrapper that expands to C<__attribute__((attrs))> on GCC, and to |
190 | A simple wrapper that expands to C<__attribute__((attrs))> on GCC 3.1+ and |
191 | nothing on other compilers, so the effect is that only GCC sees these. |
191 | Clang 2.8+, and to nothing on other compilers, so the effect is that only |
|
|
192 | GCC and Clang see these. |
192 | |
193 | |
193 | Example: use the C<deprecated> attribute on a function. |
194 | Example: use the C<deprecated> attribute on a function. |
194 | |
195 | |
195 | ecb_attribute((__deprecated__)) void |
196 | ecb_attribute((__deprecated__)) void |
196 | do_not_use_me_anymore (void); |
197 | do_not_use_me_anymore (void); |