From 8bd0dee531e3dfbc076bc06ab9c2ea0e3b4e2419 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 3 Nov 2021 15:15:20 +0100 Subject: 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. --- osdep/compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'osdep/compiler.h') 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 -- cgit v1.2.3