Currently CHECK is used only in test and bench mark files except for one usage in ecmult_impl.h
.
We would like to move the definition of CHECK out of util.h
so that util.h
no longer has a hard dependency on stdio.h
.
Done as part of an effort to allow secp256k1 to be compiled to WASM as part of rust-secp256k1
.
Note to reviewers
Please review carefully, I don’t actually know if this patch is correct. Done while working on #1095. I’m happy to make any changes both in concept and execution - I’m super rusty at C programming.
cc real-or-random