… | |
… | |
68 | platform (currently C<4> or C<8>) and can be used in preprocessor |
68 | platform (currently C<4> or C<8>) and can be used in preprocessor |
69 | expressions. |
69 | expressions. |
70 | |
70 | |
71 | =head2 LANGUAGE/COMPILER VERSIONS |
71 | =head2 LANGUAGE/COMPILER VERSIONS |
72 | |
72 | |
73 | All the following symbols expand to an expressionb that cna be tested in |
73 | All the following symbols expand to an expression that can be tested in |
74 | preprocessor instructions as well as treated as a boolean (use C<!!> to |
74 | preprocessor instructions as well as treated as a boolean (use C<!!> to |
75 | ensure it's either C<0> or C<1> if you need that). |
75 | ensure it's either C<0> or C<1> if you need that). |
76 | |
76 | |
77 | =over 4 |
77 | =over 4 |
78 | |
78 | |
… | |
… | |
95 | value, which is typically true for C++ compilers. |
95 | value, which is typically true for C++ compilers. |
96 | |
96 | |
97 | =item ECB_CPP98 |
97 | =item ECB_CPP98 |
98 | |
98 | |
99 | True if the implementation claims to be compliant to ISO/IEC 14882:1998 |
99 | True if the implementation claims to be compliant to ISO/IEC 14882:1998 |
100 | (the first C++ ISO standard) or any later vwersion. Typically true for all |
100 | (the first C++ ISO standard) or any later version. Typically true for all |
101 | C++ compilers. |
101 | C++ compilers. |
102 | |
102 | |
103 | =item ECB_CPP11 |
103 | =item ECB_CPP11 |
104 | |
104 | |
105 | True if the implementation claims to be compliant to ISO/IEC 14882:2011 |
105 | True if the implementation claims to be compliant to ISO/IEC 14882:2011 |
106 | (C++11) or any later vwersion. |
106 | (C++11) or any later version. |
107 | |
107 | |
108 | =item ECB_GCC_VERSION(major,minor) |
108 | =item ECB_GCC_VERSION(major,minor) |
109 | |
109 | |
110 | Expands to a true value (suitable for testing in by the preprocessor) |
110 | Expands to a true value (suitable for testing in by the preprocessor) |
111 | if the compiler used is GNU C and the version is the givne version, or |
111 | if the compiler used is GNU C and the version is the given version, or |
112 | higher. |
112 | higher. |
113 | |
113 | |
114 | This macro tries to return false on compilers that claim to be GCC |
114 | This macro tries to return false on compilers that claim to be GCC |
115 | compatible but aren't. |
115 | compatible but aren't. |
116 | |
116 | |