From: Carl Worth Date: Fri, 5 Dec 2014 16:05:44 +0000 (-0800) Subject: util: Make unreachable at least be an assert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62d5b4b03aa63582cf0801d306d7ca055cca40a0;p=mesa.git util: Make unreachable at least be an assert Previously, if __builtin_unreachable() was unavailable, the unreachable macro was defined to do nothing. We do better here, by at least still making it an assert. Reviewed-by: Ian Romanick --- diff --git a/src/util/macros.h b/src/util/macros.h index 5fc6729536c..eec8b9352cc 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -82,7 +82,7 @@ do { \ #endif #ifndef unreachable -#define unreachable(str) +#define unreachable(str) assert(!str) #endif /**