是否有像_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
Run Code Online (Sandbox Code Playgroud)
因此,我可以绕过#pragma omp ...
旧GCC编译器中未知的编译器警告.VisualC++中是否有类似的方法?