mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +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:
parent
67e3daa679
commit
6ba87a6b5e
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
extern bool __stdio_is_initialized;
|
extern bool __stdio_is_initialized;
|
||||||
#ifdef DEBUG
|
#ifndef NDEBUG
|
||||||
void __assertion_failed(const char* msg)
|
void __assertion_failed(const char* msg)
|
||||||
{
|
{
|
||||||
dbgln("USERSPACE({}) ASSERTION FAILED: {}", getpid(), msg);
|
dbgln("USERSPACE({}) ASSERTION FAILED: {}", getpid(), msg);
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifndef NDEBUG
|
||||||
__attribute__((noreturn)) void __assertion_failed(const char* msg);
|
__attribute__((noreturn)) void __assertion_failed(const char* msg);
|
||||||
# define __stringify_helper(x) # x
|
# define __stringify_helper(x) # x
|
||||||
# define __stringify(x) __stringify_helper(x)
|
# define __stringify(x) __stringify_helper(x)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue