Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement SNITCH_DISABLE feature #192

Merged
merged 21 commits into from
Nov 30, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update include/snitch/snitch_macros_exceptions.hpp
Fix indentation

Co-authored-by: Corentin Schreiber <github@corentin.net>
NicoMuleo and cschreib authored Nov 5, 2024
commit 35f5988651c89cf1b5a1def90d082421cb6ffdde
10 changes: 5 additions & 5 deletions include/snitch/snitch_macros_exceptions.hpp
Original file line number Diff line number Diff line change
@@ -132,12 +132,12 @@
# else // SNITCH_DISABLE

// clang-format off
# define SNITCH_REQUIRE_THROWS_AS(EXPRESSION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(__VA_ARGS__))
# define SNITCH_CHECK_THROWS_AS(EXPRESSION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(__VA_ARGS__))
# define SNITCH_REQUIRE_THROWS_AS(EXPRESSION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(__VA_ARGS__))
# define SNITCH_CHECK_THROWS_AS(EXPRESSION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(__VA_ARGS__))
# define SNITCH_REQUIRE_THROWS_MATCHES(EXPRESSION, EXCEPTION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(EXCEPTION), __VA_ARGS__)
# define SNITCH_CHECK_THROWS_MATCHES(EXPRESSION, EXCEPTION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(EXCEPTION), __VA_ARGS__)
# define SNITCH_REQUIRE_NOTHROW(...) SNITCH_DISCARD_ARGS(__VA_ARGS__)
# define SNITCH_CHECK_NOTHROW(...) SNITCH_DISCARD_ARGS(__VA_ARGS__)
# define SNITCH_CHECK_THROWS_MATCHES(EXPRESSION, EXCEPTION, ...) SNITCH_DISCARD_ARGS(EXPRESSION, sizeof(EXCEPTION), __VA_ARGS__)
# define SNITCH_REQUIRE_NOTHROW(...) SNITCH_DISCARD_ARGS(__VA_ARGS__)
# define SNITCH_CHECK_NOTHROW(...) SNITCH_DISCARD_ARGS(__VA_ARGS__)
// clang-format on

# endif