From 405b6ac3bd4a0e9140d854b3f8af06ba6993e329 Mon Sep 17 00:00:00 2001 From: Songling Han Date: Sat, 19 Oct 2024 01:52:22 +0000 Subject: [PATCH] remove LIBOQS_die Signed-off-by: Songling Han --- src/common/common.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/common/common.h b/src/common/common.h index 95734aa9e..b15e244a3 100644 --- a/src/common/common.h +++ b/src/common/common.h @@ -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.