摘要: C++中会常使用到宏来进行条件编译,或设置变量 1、__cplusplus:区分当前代码为 C++ 或 C // 定义只在C++中才进行 extern "C" 的操作 #ifdef __cplusplus extern "C" { #endif void fun(int a, int b); #if 阅读全文
posted @ 2024-08-28 14:09 Jeffxue 阅读(66) 评论(0) 推荐(0)