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)