… | |
… | |
67 | The macro C<ECB_PTRSIZE> is defined to the size of a pointer on this |
67 | The macro C<ECB_PTRSIZE> is defined to the size of a pointer on this |
68 | platform (currently C<4> or C<8>). |
68 | platform (currently C<4> or C<8>). |
69 | |
69 | |
70 | =head2 LANGUAGE/COMPILER VERSIONS |
70 | =head2 LANGUAGE/COMPILER VERSIONS |
71 | |
71 | |
|
|
72 | All the following symbols expand to an expressionb that cna be tested in |
|
|
73 | preprocessor instructions as well as treated as a boolean (use C<!!> to |
|
|
74 | ensure it's either C<0> or C<1> if you need that). |
|
|
75 | |
72 | =over 4 |
76 | =over 4 |
73 | |
77 | |
|
|
78 | =item ECB_C |
|
|
79 | |
|
|
80 | True if the implementation defines the C<__STDC__> macro to a true value, |
|
|
81 | which is typically true for both C and C++ compilers. |
|
|
82 | |
74 | =item ECB_C99 |
83 | =item ECB_C99 |
75 | |
84 | |
76 | Expands to a true value (suitable for testing in by the preprocessor) |
|
|
77 | if the environment claims to be C99 compliant. |
85 | True if the implementation claims to be C99 compliant. |
78 | |
86 | |
79 | =item ECB_C11 |
87 | =item ECB_C11 |
80 | |
88 | |
81 | Expands to a true value (suitable for testing in by the preprocessor) |
|
|
82 | if the environment claims to be C11 compliant. |
89 | True if the implementation claims to be C11 compliant. |
|
|
90 | |
|
|
91 | =item ECB_CPP |
|
|
92 | |
|
|
93 | True if the implementation defines the C<__cplusplus__> macro to a true |
|
|
94 | value, which is typically true for C++ compilers. |
|
|
95 | |
|
|
96 | =item ECB_CPP98 |
|
|
97 | |
|
|
98 | True if the implementation claims to be compliant to ISO/IEC 14882:1998 |
|
|
99 | (the first C++ ISO standard) or any later vwersion. Typically true for all |
|
|
100 | C++ compilers. |
|
|
101 | |
|
|
102 | =item ECB_CPP11 |
|
|
103 | |
|
|
104 | True if the implementation claims to be compliant to ISO/IEC 14882:2011 |
|
|
105 | (C++11) or any later vwersion. |
83 | |
106 | |
84 | =item ECB_GCC_VERSION(major,minor) |
107 | =item ECB_GCC_VERSION(major,minor) |
85 | |
108 | |
86 | Expands to a true value (suitable for testing in by the preprocessor) |
109 | Expands to a true value (suitable for testing in by the preprocessor) |
87 | if the compiler used is GNU C and the version is the givne version, or |
110 | if the compiler used is GNU C and the version is the givne version, or |