_Pragma
Visual C++ 中是否有类似 ANSI C 运算符的东西?
例如,我正在尝试定义以下宏:
#ifdef _OPENMP
#define PRAGMA_IF_OPENMP(x) _Pragma (#x)
#else // #ifdef _OPENMP
#define PRAGMA_IF_OPENMP(x)
#endif // #ifdef _OPENMP
所以我可以绕过#pragma omp ...
旧 GCC 编译器中未知的编译器警告。VisualC++ 中是否有类似的方法可用?