File tree 1 file changed +10
-10
lines changed
1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -371,17 +371,17 @@ template <typename T> constexpr auto const_check(T value) -> T { return value; }
371
371
FMT_NORETURN FMT_API void assert_fail (const char * file, int line,
372
372
const char * message);
373
373
374
- #ifndef FMT_ASSERT
375
- # ifdef NDEBUG
374
+ #if defined(FMT_ASSERT)
375
+ // Use the provided definition.
376
+ #elif defined(NDEBUG)
376
377
// FMT_ASSERT is not empty to avoid -Wempty-body.
377
- # define FMT_ASSERT (condition, message ) \
378
- fmt::detail::ignore_unused ((condition), (message))
379
- # else
380
- # define FMT_ASSERT (condition, message ) \
381
- ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
382
- ? (void )0 \
383
- : fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
384
- # endif
378
+ # define FMT_ASSERT (condition, message ) \
379
+ fmt::detail::ignore_unused ((condition), (message))
380
+ #else
381
+ # define FMT_ASSERT (condition, message ) \
382
+ ((condition) /* void() fails with -Winvalid-constexpr on clang 4.0.1 */ \
383
+ ? (void )0 \
384
+ : fmt::detail::assert_fail(__FILE__, __LINE__, (message)))
385
385
#endif
386
386
387
387
#ifdef FMT_USE_INT128
You can’t perform that action at this time.
0 commit comments