mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 21:31:20 +00: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:
parent
d8e1c9f175
commit
640acba850
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user