Skip to content

Commit

Permalink
Add error message when Antithesis enabled without Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronek committed Jul 11, 2024
1 parent 6b48def commit 3cf1c00
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/xrpl/basics/instrumentation.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <cassert>

#ifdef ENABLE_VOIDSTAR
#ifndef NDEBUG
#include <antithesis_sdk.h>
#else
#pragma GCC error "Antithesis instrumentation requires Debug build"
#endif
#else
#define ALWAYS(cond, message, ...)
#define ALWAYS_OR_UNREACHABLE(cond, message, ...) assert(message&& cond)
#define SOMETIMES(cond, message, ...)
Expand Down

0 comments on commit 3cf1c00

Please sign in to comment.