1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:45:08 +00:00
serenity/LibC/assert.cpp
Andreas Kling e904f193c1 Canonicalize the path used by sh.
With a bunch of LibC work to support the feature. LibC now initializes
AK::StringImpl by default. It's now fine to use AK in LibC/Userland! :^)
2018-10-28 09:36:21 +01:00

14 lines
268 B
C++

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