mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibC: Make __assertion_failed
always defined
The symbol should be always defined, in case Serenity is built with `NDEBUG` defined, and users wants to use `assert` from `LibC`.
This commit is contained in:
parent
35a5305264
commit
ee42acddf8
1 changed files with 1 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
||||||
extern bool __stdio_is_initialized;
|
extern bool __stdio_is_initialized;
|
||||||
#ifndef NDEBUG
|
|
||||||
void __assertion_failed(const char* msg)
|
void __assertion_failed(const char* msg)
|
||||||
{
|
{
|
||||||
if (__heap_is_stable) {
|
if (__heap_is_stable) {
|
||||||
|
@ -32,7 +32,6 @@ void __assertion_failed(const char* msg)
|
||||||
syscall(SC_set_coredump_metadata, ¶ms);
|
syscall(SC_set_coredump_metadata, ¶ms);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void _abort()
|
void _abort()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue