Skip to content

Commit bb46723

Browse files
committed
remove VERIFY_SETUP define
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.
1 parent a3a3e11 commit bb46723

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/util.h

-2
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,8 @@ static const secp256k1_callback default_error_callback = {
135135
/* Like assert(), but when VERIFY is defined. */
136136
#if defined(VERIFY)
137137
#define VERIFY_CHECK CHECK
138-
#define VERIFY_SETUP(stmt) do { stmt; } while(0)
139138
#else
140139
#define VERIFY_CHECK(cond)
141-
#define VERIFY_SETUP(stmt)
142140
#endif
143141

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

0 commit comments

Comments
 (0)