mirror of
https://github.com/fmtlib/fmt.git
synced 2026-02-08 10:46:58 +08:00
Remove old assert_fail
This commit is contained in:
parent
8eec491424
commit
01e6f01076
@ -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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user