Skip to content

Commit

Permalink
Always assert in FMT_THROW (#3439)
Browse files Browse the repository at this point in the history
  • Loading branch information
brevzin committed May 17, 2023
1 parent e0fc0e8 commit 9a034b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,8 @@ FMT_END_NAMESPACE
# define FMT_THROW(x) throw x
# endif
# else
# define FMT_THROW(x) \
do { \
FMT_ASSERT(false, (x).what()); \
} while (false)
# define FMT_THROW(x) \
::fmt::detail::assert_fail(__FILE__, __LINE__, (x).what())
# endif
#endif

Expand Down

0 comments on commit 9a034b0

Please sign in to comment.