mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 10:47:35 +02:00
Print x.what() of FMT_THROW when exception is disabled (#2145)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
@ -123,8 +123,7 @@ FMT_END_NAMESPACE
|
||||
# else
|
||||
# define FMT_THROW(x) \
|
||||
do { \
|
||||
static_cast<void>(x); \
|
||||
FMT_ASSERT(false, ""); \
|
||||
FMT_ASSERT(false, (x).what()); \
|
||||
} while (false)
|
||||
# endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user