mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:27:34 +00:00
Put assertions behind a DEBUG flag to make it easy to build without them.
This commit is contained in:
parent
f3754b8429
commit
0c898e3c2c
18 changed files with 49 additions and 37 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
extern "C" {
|
||||
|
||||
#ifdef DEBUG
|
||||
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func)
|
||||
{
|
||||
dbgprintf("USERSPACE(%d) ASSERTION FAILED: %s\n%s:%u in %s\n", getpid(), msg, file, line, func);
|
||||
|
@ -12,5 +13,6 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const
|
|||
abort();
|
||||
for (;;);
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue