2022-12-04 12:42:43 +01:00
|
|
|
#include <luna/Attributes.h>
|
2022-11-19 17:20:10 +01:00
|
|
|
|
2023-01-10 19:02:16 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
_weak [[noreturn]] bool __check_failed(const char* file, const char* line, const char* func, const char* expr)
|
2022-11-19 17:20:10 +01:00
|
|
|
{
|
2023-01-10 19:02:16 +01:00
|
|
|
// 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
|
|
|
}
|