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.
This commit is contained in:
Andrew Kaster 2023-06-25 14:12:52 -06:00 committed by Andreas Kling
parent c5f3b3ae02
commit cd2a6767bc
Notes: sideshowbarker 2024-07-16 18:01:24 +09:00

View file

@ -11,7 +11,7 @@
#else
# include <assert.h>
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