Skip to content

Commit

Permalink
remove VERIFY_SETUP define
Browse files Browse the repository at this point in the history
This define was seemingly introduced for VERIFY mode code with side
effects (for setup purposes), that should just be executed without any
checks. The same can be achieved by putting it in an `#if VERIFY` block,
so we can remove it.
  • Loading branch information
theStack committed Dec 1, 2023
1 parent a3a3e11 commit bb46723
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,8 @@ static const secp256k1_callback default_error_callback = {
/* Like assert(), but when VERIFY is defined. */
#if defined(VERIFY)
#define VERIFY_CHECK CHECK
#define VERIFY_SETUP(stmt) do { stmt; } while(0)
#else
#define VERIFY_CHECK(cond)
#define VERIFY_SETUP(stmt)
#endif

static SECP256K1_INLINE void *checked_malloc(const secp256k1_callback* cb, size_t size) {
Expand Down

0 comments on commit bb46723

Please sign in to comment.