Always assert in FMT_THROW

This commit is contained in:
Barry Revzin 2023-05-15 15:54:29 -06:00
parent 552c43aba9
commit b4da8f22e1

View File

@ -114,10 +114,8 @@ FMT_END_NAMESPACE
# define FMT_THROW(x) throw x # define FMT_THROW(x) throw x
# endif # endif
# else # else
# define FMT_THROW(x) \ # define FMT_THROW(x) \
do { \ ::fmt::detail::assert_fail(__FILE__, __LINE__, (x).what())
FMT_ASSERT(false, (x).what()); \
} while (false)
# endif # endif
#endif #endif