首页
新闻
小组
威客
人才
下载
博客
代码贴
在线编程
论坛
注册
|
登录
#ifdef和#endif
代码: #ifdef __cplusplus extern "C" { #endif void abc(int); #ifdef __cplusplus } #endif 预编译宏,如果定义了__cplusplus这个宏,那么代码被展开为 extern "C" { void abc(int); } 否则就是 void abc(int); 至于 extern "C" { void abc(int); } 意思可能是指声明abc为c风格的外部函数
C/C++
| 2013-08-12 17:14 |
阅读 1084 次
|
评论 0 条
xueruixuan的博客
xueruixuan
浏览1082次
文章分类
默认分类(0)
C/C++(1)
文章归档
2013年08月(1)
最新评论