Skip to content

Commit

Permalink
remove LIBOQS_die
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Oct 19, 2024
1 parent 6b825e1 commit 405b6ac
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,6 @@ extern "C" {
} \
} while (0)

/**
* Macro for terminating the program if a given pointer is NULL.
* @param ptr The pointer to check.
* @param msg The error message to display if the pointer is NULL.
*/
#define LIBOQS_die(ptr, msg) do { \
if (!(ptr)) { \
fprintf(stderr, "%s\n", msg); \
abort(); \
} \
} while (0)

/**
* This macro is intended to replace those assert()s
* involving side-effecting statements in aes/aes_ossl.c.
Expand Down

0 comments on commit 405b6ac

Please sign in to comment.