diff options
author | Niklas Haas <git@haasn.dev> | 2021-11-03 15:15:20 +0100 |
---|---|---|
committer | Niklas Haas <git@haasn.dev> | 2021-11-03 15:15:20 +0100 |
commit | 8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419 (patch) | |
tree | 711a7721171eec477016a9d7fcfb892376b72371 /osdep | |
parent | 701bd783cafa9fbe6dc5c34d8784193179a9290d (diff) | |
download | mpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.bz2 mpv-8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419.tar.xz |
osdep: rename MP_UNREACHABLE
It was pointed out on IRC that the name is misleading, since the actual
semantics of the macro is to assert first.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/compiler.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/compiler.h b/osdep/compiler.h index 471fc2ffd1..99fc8f0c25 100644 --- a/osdep/compiler.h +++ b/osdep/compiler.h @@ -24,9 +24,9 @@ #endif #ifdef __GNUC__ -#define MP_UNREACHABLE() (assert(!"unreachable"), __builtin_unreachable()) +#define MP_ASSERT_UNREACHABLE() (assert(!"unreachable"), __builtin_unreachable()) #else -#define MP_UNREACHABLE() (assert(!"unreachable"), abort()) +#define MP_ASSERT_UNREACHABLE() (assert(!"unreachable"), abort()) #endif #endif |