1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:17:46 +00:00

LibC: Use correct macro to disable assert()

The C standard doesn't say anything about DEBUG, just NDEBUG :^)
This commit is contained in:
Andrew Kaster 2021-07-12 01:15:22 -06:00 committed by Andreas Kling
parent 67e3daa679
commit 6ba87a6b5e
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
extern "C" {
extern bool __stdio_is_initialized;
#ifdef DEBUG
#ifndef NDEBUG
void __assertion_failed(const char* msg)
{
dbgln("USERSPACE({}) ASSERTION FAILED: {}", getpid(), msg);

View file

@ -10,7 +10,7 @@
__BEGIN_DECLS
#ifdef DEBUG
#ifndef NDEBUG
__attribute__((noreturn)) void __assertion_failed(const char* msg);
# define __stringify_helper(x) # x
# define __stringify(x) __stringify_helper(x)