其他分享
首页 > 其他分享> > 什么时候会定_cplusplus宏

什么时候会定_cplusplus宏

作者:互联网

_cplusplus

The __cplusplus preprocessor macro is defined if the compilation unit is compiled with a C++ compiler. If defined, its value corresponds to the C++ standard that the compiler uses to compile a compilation unit.

具体来说g++编译.c/.cpp,gcc编译.cpp

 

标签:defined,cplusplus,C++,会定,时候,compilation,unit,compiler
来源: https://blog.csdn.net/xtydtc/article/details/116124984