mirror of
https://github.com/fmtlib/fmt.git
synced 2026-08-03 20:14:20 +02:00
Remove old assert_fail
This commit is contained in:
+1
-4
@@ -380,10 +380,7 @@ template <typename T> FMT_ALWAYS_INLINE constexpr auto const_check(T val) -> T {
|
|||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
FMT_NORETURN FMT_API void assert_fail(const char* file, int line,
|
#ifdef FMT_ASSERT
|
||||||
const char* message);
|
|
||||||
|
|
||||||
#if defined(FMT_ASSERT)
|
|
||||||
// Use the provided definition.
|
// Use the provided definition.
|
||||||
#elif defined(NDEBUG)
|
#elif defined(NDEBUG)
|
||||||
// FMT_ASSERT is not empty to avoid -Wempty-body.
|
// FMT_ASSERT is not empty to avoid -Wempty-body.
|
||||||
|
|||||||
Reference in New Issue
Block a user