C++有一个__cplusplus
预处理器定义,可以让你检测版本.C有什么相似之处吗?
我希望它可以在XCode,GCC和Visual Studio版本中移植.
dop*_*ime 11
根据维基百科关于C99的文章
A standard macro __STDC_VERSION__ is defined with value 199901L to indicate that C99 support is available
#if __STDC_VERSION__ >= 199901L
/*C99*/
#else
/*Not C99*/
#endif
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2038 次 |
最近记录: |