configure: add --enable-coverage to set options for coverage analysis

This commit is contained in:
Andrew Poelstra
2016-11-26 20:34:15 +00:00
parent b595163992
commit a724d7296d
3 changed files with 28 additions and 4 deletions

View File

@@ -57,7 +57,10 @@ static SECP256K1_INLINE void secp256k1_callback_call(const secp256k1_callback *
#endif
/* Like assert(), but when VERIFY is defined, and side-effect safe. */
#ifdef VERIFY
#if defined(COVERAGE)
#define VERIFY_CHECK(check)
#define VERIFY_SETUP(stmt)
#elif defined(VERIFY)
#define VERIFY_CHECK CHECK
#define VERIFY_SETUP(stmt) do { stmt; } while(0)
#else