From fecc5e9917cbe9f312a00145e47987feaf72c0bd Mon Sep 17 00:00:00 2001 From: Songling Han Date: Fri, 18 Oct 2024 18:08:09 +0000 Subject: [PATCH] src/common/common.h 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.