extern原理

我们在C++头文件中经常看到一下代码: //在.h文件的头上 #ifdef __cplusplus #if __cplusplus extern "C"{  #endif  #endif /* __cplusplus */  …  …  //.h文件结束的地方  #ifdef __cplusplus  #if __cplusplus } #endif #endif /* __cplusplus *
相关文章
相关标签/搜索