mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +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
Notes:
sideshowbarker
2024-07-16 18:01:24 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/cd2a6767bc Pull-request: https://github.com/SerenityOS/serenity/pull/19640
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…
Reference in a new issue