 |
Version: SMASH-3.4
|
|
Go to the documentation of this file.
5 #ifndef SRC_INCLUDE_SMASH_MACROS_H_
6 #define SRC_INCLUDE_SMASH_MACROS_H_
10 #define likely(x) __builtin_expect((x), 1)
11 #define unlikely(x) __builtin_expect((x), 0)
16 #define unlikely(x) (x)
20 #define SMASH_DEPRECATED(msg) __attribute__((deprecated(msg)))
23 #if defined(__GNUC__) && !defined(__clang__)
26 #define DO_PRAGMA_(x) _Pragma(#x)
29 #define DO_PRAGMA(x) DO_PRAGMA_(x)
48 #define GCC_IGNORE_BEGIN(warning) \
49 DO_PRAGMA(GCC diagnostic push) \
50 DO_PRAGMA(GCC diagnostic ignored warning)
53 #define GCC_IGNORE_ALSO(warning) DO_PRAGMA(GCC diagnostic ignored warning)
56 #define GCC_IGNORE_END() DO_PRAGMA(GCC diagnostic pop)
61 #define GCC_IGNORE_BEGIN(warning)
64 #define GCC_IGNORE_ALSO(warning)
67 #define GCC_IGNORE_END()