Skip to content

Commit

Permalink
secp256k1.h: clarify that by default arguments must be != NULL
Browse files Browse the repository at this point in the history
The same file says that the illegal callback will only triger for violations
explicitly mentioned, which is not true without this commit because we often
don't mention that an argument is not allowed to be NULL.
  • Loading branch information
jonasnick committed Apr 29, 2021
1 parent efad350 commit 0881633
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/secp256k1.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ extern "C" {

#include <stddef.h>

/* These rules specify the order of arguments in API calls:
/* Unless explicitly stated all pointer arguments must not be NULL.
*
* The following rules specify the order of arguments in API calls:
*
* 1. Context pointers go first, followed by output arguments, combined
* output/input arguments, and finally input-only arguments.
Expand Down

0 comments on commit 0881633

Please sign in to comment.