Skip to content

Commit

Permalink
node: disable noexcept when assertions are enabled
Browse files Browse the repository at this point in the history
re #389
  • Loading branch information
biojppm committed Apr 3, 2024
1 parent 1b51067 commit d5644c2
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 105 deletions.
2 changes: 2 additions & 0 deletions src/c4/yml/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
# define RYML_ASSERT(cond) RYML_CHECK(cond)
# define RYML_ASSERT_MSG(cond, msg) RYML_CHECK_MSG(cond, msg)
# define _RYML_CB_ASSERT(cb, cond) _RYML_CB_CHECK((cb), (cond))
# define RYML_NOEXCEPT
#else
# define RYML_ASSERT(cond)
# define RYML_ASSERT_MSG(cond, msg)
# define _RYML_CB_ASSERT(cb, cond)
# define RYML_NOEXCEPT noexcept
#endif


Expand Down
Loading

0 comments on commit d5644c2

Please sign in to comment.