From cd2a6767bcded31fe8f621bbdcfaabcbcfca0448 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 25 Jun 2023 14:12:52 -0600 Subject: [PATCH] AK: Never use assert() when targeting Windows platforms The Windows CRT definition of assert() is not noreturn, and causes compile errors when using it as the backing for VERIFY() in debug configurations of applications like the Jakt compiler. --- AK/Assertions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AK/Assertions.h b/AK/Assertions.h index 126780620b..9f75f78eec 100644 --- a/AK/Assertions.h +++ b/AK/Assertions.h @@ -11,7 +11,7 @@ #else # include extern "C" __attribute__((noreturn)) void ak_verification_failed(char const*); -# ifndef NDEBUG +# if !defined(NDEBUG) && !defined(WIN32) # define VERIFY assert # else # define __stringify_helper(x) #x