From 374030942743421058b9e36a2a1a6e0fefd19072 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 3 Dec 2022 17:18:16 +0100 Subject: [PATCH] Check for STRINGIZE_VALUE_OF before defining it --- luna/Check.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/luna/Check.h b/luna/Check.h index 1e24fb66..4327a2be 100644 --- a/luna/Check.h +++ b/luna/Check.h @@ -3,7 +3,9 @@ extern _noreturn bool __check_failed(const char* file, const char* line, const char* func, const char* expr); +#ifndef STRINGIZE_VALUE_OF #define STRINGIZE(x) #x #define STRINGIZE_VALUE_OF(x) STRINGIZE(x) +#endif #define check(expr) (expr) || __check_failed(__FILE__, STRINGIZE_VALUE_OF(__LINE__), __PRETTY_FUNCTION__, #expr)