【发布时间】:2012-09-15 21:07:41
【问题描述】:
可能重复:
Combining C++ and C - how does #ifdef __cplusplus work?
我在许多图书馆都遇到过以下几行;它们有什么用? __cplusplus 何时/何地定义?
#ifdef __cplusplus
extern "C" {
#endif
//...
#ifdef __cplusplus
}
#endif
【问题讨论】:
标签: c++ c c-preprocessor