Electroneum
pragma_comp_defs.h
Go to the documentation of this file.
1 #pragma once
2 
3 #if defined(__GNUC__)
4  #define PRAGMA_WARNING_PUSH _Pragma("GCC diagnostic push")
5  #define PRAGMA_WARNING_POP _Pragma("GCC diagnostic pop")
6  #define PRAGMA_WARNING_DISABLE_VS(w)
7  #define PRAGMA_GCC(w) _Pragma(w)
8 #elif defined(_MSC_VER)
9  #define PRAGMA_WARNING_PUSH __pragma(warning( push ))
10  #define PRAGMA_WARNING_POP __pragma(warning( pop ))
11  #define PRAGMA_WARNING_DISABLE_VS(w) __pragma( warning ( disable: w ))
12  //#define PRAGMA_WARNING_DISABLE_GCC(w)
13  #define PRAGMA_GCC(w)
14 #endif