Skip to content

Commit

Permalink
Change STATIC_CHECK to throw instead of returning false to improve
Browse files Browse the repository at this point in the history
compile-time reporting of test failures.
  • Loading branch information
brycelelbach committed Jul 31, 2023
1 parent 90e01d6 commit fbb25d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <flux/op/from.hpp>
#include <flux/op/ref.hpp>

#define STATIC_CHECK(...) if (!(__VA_ARGS__)) return false
#define STATIC_CHECK(...) if (!(__VA_ARGS__)) throw false

inline namespace test_utils {

Expand Down

0 comments on commit fbb25d4

Please sign in to comment.