I am wondering how different the preprocessors for C++ and C are.
The reason for the question is this question on a preprocessor-specific question w
Predefined macros differ between the preprocessors, mostly for obvious language feature differences. E.g. compare:
In particular:
__cplusplus, C++ uses it to represent the version__STDC__ to represent the version, C++ says is implementation defined and uses __cplusplus instead__STDC_IEC_559__ and __STDC_IEC_559_COMPLEX__ to indicate floating point characteristics, C++ does not and seems replace that with the per type std::numeric_limits::is_iec559 constants__STDCPP: _STDCPP_STRICT_POINTER_SAFETY__ and __STDCPP_THREADS__As mentioned by DevSolar, C11 added many more defines which are not part of C++11.