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:
Jiahao XU 2021-02-25 01:29:04 +11:00 committed by GitHub
parent d8e1c9f175
commit 640acba850
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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