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