mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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
|
||||
# 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
|
||||
|
|
Loading…
Reference in a new issue