mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 23:30:10 +01:00
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 <ian.d.romanick@intel.com>
This commit is contained in:
parent
f87ffd5cc3
commit
62d5b4b03a
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ do { \
|
|||
#endif
|
||||
|
||||
#ifndef unreachable
|
||||
#define unreachable(str)
|
||||
#define unreachable(str) assert(!str)
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue