Skip to content

Commit

Permalink
Merge pull request #146 from snitch-org/nothrow
Browse files Browse the repository at this point in the history
Fix consteval checks for non-decomposable expressions being evaluated at run time
  • Loading branch information
cschreib authored Nov 28, 2023
2 parents 770286e + 9875972 commit 286b5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/snitch/snitch_macros_consteval.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
constexpr SNITCH_EXPR(CHECK, EXPECTED, __VA_ARGS__); \
SNITCH_REPORT_EXPRESSION(MAYBE_ABORT); \
} else { \
const auto SNITCH_CURRENT_EXPRESSION = snitch::impl::expression{ \
constexpr auto SNITCH_CURRENT_EXPRESSION = snitch::impl::expression{ \
CHECK, #__VA_ARGS__, {}, static_cast<bool>(__VA_ARGS__) == EXPECTED}; \
SNITCH_REPORT_EXPRESSION(MAYBE_ABORT); \
} \
Expand Down

0 comments on commit 286b5cb

Please sign in to comment.