mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +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:
parent
c5f3b3ae02
commit
cd2a6767bc
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@
|
||||||
#else
|
#else
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
extern "C" __attribute__((noreturn)) void ak_verification_failed(char const*);
|
extern "C" __attribute__((noreturn)) void ak_verification_failed(char const*);
|
||||||
# ifndef NDEBUG
|
# if !defined(NDEBUG) && !defined(WIN32)
|
||||||
# define VERIFY assert
|
# define VERIFY assert
|
||||||
# else
|
# else
|
||||||
# define __stringify_helper(x) #x
|
# define __stringify_helper(x) #x
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue