1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 07:44:57 +00:00
serenity/LibC/assert.cpp

13 lines
269 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();
}
}