Skip to content

Commit

Permalink
remove io for better performance during failure. add log later.
Browse files Browse the repository at this point in the history
Signed-off-by: Songling Han <[email protected]>
  • Loading branch information
songlingatpan committed Sep 22, 2024
1 parent b8236b1 commit fec2cdf
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/common/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ extern "C" {
* Prints an error message to stderr and return.
* @param msg The error message to be printed.
*/
#define OQS_EXIT(msg) \
{ \
fprintf(stderr, "%s", msg); \
return; \
#define OQS_EXIT(msg) \
{ \
return; /* TODO: better error handling */ \
}
/**
* Macro for terminating the program if x is
Expand All @@ -98,7 +97,6 @@ extern "C" {
#define OQS_EXIT_IF_NULLPTR(x, loc) \
do { \
if ( (x) == (void*)0 ) { \
fprintf(stderr, "Unexpected NULL returned from %s API. Exiting.\n", loc); \
return; /* TODO: better error handling */ \
} \
} while (0)
Expand Down

0 comments on commit fec2cdf

Please sign in to comment.