mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-05 15:27:04 +00:00
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:
committed by
Andreas Kling
parent
c5f3b3ae02
commit
cd2a6767bc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user