14 #define STRINGIFY(s) #s
19 #define CLANG_WARNING_DISABLE(warning)\
20 _Pragma("clang diagnostic push")\
21 _Pragma("clang diagnostic ignored \"-Wunknown-pragmas\"")\
22 _Pragma("clang diagnostic ignored \"-Wunknown-warning-option\"")\
23 _Pragma( STRINGIFY(clang diagnostic ignored warning) )
24 #define CLANG_WARNING_RESET\
25 _Pragma("clang diagnostic pop")
26 #elif defined __GNUC__
29 #define CLANG_WARNING_DISABLE(warning)
30 #define CLANG_WARNING_RESET
31 #elif defined _MSC_VER
34 #define CLANG_WARNING_DISABLE(warning)
35 #define CLANG_WARNING_RESET
37 #warning "You are using an unsupported compiler."
45 #elif defined __APPLE__
47 #elif defined __linux__
50 #warning "You are using an unsupported operating system."