2026-05-31 17:20:00 +01:00
|
|
|
#include <magenta/log.h>
|
|
|
|
|
#include <stdio.h>
|
2026-04-01 18:48:35 +01:00
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
extern void __libc_assert_failed(
|
|
|
|
|
const char *file,
|
|
|
|
|
int line,
|
|
|
|
|
const char *func,
|
|
|
|
|
const char *cond)
|
|
|
|
|
{
|
2026-05-31 17:20:00 +01:00
|
|
|
kern_logf("ASSERT: %s failed (%s in %s:%d)", cond, func, file, line);
|
2026-04-01 18:48:35 +01:00
|
|
|
abort();
|
|
|
|
|
}
|