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

@ -401,7 +401,7 @@ FILE* freopen(const char* pathname, const char* mode, FILE* stream)
(void)pathname;
(void)mode;
(void)stream;
assert(false);
ASSERT_NOT_REACHED();
}
FILE* fdopen(int fd, const char* mode)
@ -429,19 +429,19 @@ int rename(const char* oldpath, const char* newpath)
char* tmpnam(char*)
{
assert(false);
ASSERT_NOT_REACHED();
}
FILE* popen(const char* command, const char* type)
{
(void)command;
(void)type;
assert(false);
ASSERT_NOT_REACHED();
}
int pclose(FILE*)
{
assert(false);
ASSERT_NOT_REACHED();
}
int remove(const char* pathname)