Luna/luna/src/Check.cpp

12 lines
338 B
C++
Raw Normal View History

#include <luna/Attributes.h>
#include <stdio.h>
#include <stdlib.h>
_weak [[noreturn]] bool __check_failed(const char* file, const char* line, const char* func, const char* expr)
{
// FIXME: Output to standard error instead of standard output.
printf("Check failed at %s:%s in %s: %s\n", file, line, func, expr);
abort();
2023-01-02 13:07:29 +01:00
}