Go to the documentation of this file.
9 #define __has_builtin(x) 0
14 #if __has_builtin(__builtin_unreachable)
15 #define UNREACHABLE __builtin_unreachable()
20 #elif ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
22 #define UNREACHABLE __builtin_unreachable()
24 #elif defined(_MSC_VER)
26 #define UNREACHABLE __assume(0)
40 #define UNREACHABLE while (1) assert(false)