1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

Put assertions behind a DEBUG flag to make it easy to build without them.

This commit is contained in:
Andreas Kling 2019-04-23 21:52:02 +02:00
parent f3754b8429
commit 0c898e3c2c
18 changed files with 49 additions and 37 deletions

View file

@ -107,7 +107,7 @@ int tgetnum(const char* id)
auto it = caps->find(id);
if (it != caps->end())
return atoi((*it).value);
assert(false);
ASSERT_NOT_REACHED();
}
char* tgoto(const char* cap, int col, int row)
@ -115,7 +115,7 @@ char* tgoto(const char* cap, int col, int row)
(void)cap;
(void)col;
(void)row;
assert(false);
ASSERT_NOT_REACHED();
}
int tputs(const char* str, int affcnt, int (*putc)(int))