关于C++条件编译的细节

来源:互联网 发布:mac音频播放器 编辑:程序博客网 时间:2024/06/15 02:07
#ifdef interface读作如果interface被定义了
#undef interface读作解除interface的定义

#endif读作条件编译完了


#ifdef xxxx

#define xxxx

....

#endif

表示如果xxxx已经定义过那么这条编译跳过

和上面的效果是一样的

原创粉丝点击