1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-10 22:52:08 +00:00
serenity/LibC/assert.cpp
2018-11-04 14:11:16 +01:00

14 lines
283 B
C++

#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
extern "C" {
void __assertion_failed(const char* msg, const char* file, unsigned line, const char* func)
{
fprintf(stderr, "ASSERTION FAILED: %s\n%s:%u in %s\n", msg, file, line, func);
abort();
for (;;);
}
}