forked from fmtlib/fmt
Always assert in FMT_THROW (#3439)
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user