Skip to content

Commit

Permalink
src/common/common.h
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Oct 18, 2024
1 parent f320b15 commit e0cbc80
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 e0cbc80

Please sign in to comment.