ladybird/LibC/assert.cpp

14 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();
}
}