summaryrefslogtreecommitdiff
path: root/src/user/lib/assert.c
blob: f42d6960c3e92f1b183cb2636e520ba130f117ff (plain)
1
2
3
4
5
6
7
8
#include <assert.h>
#include <camellia/syscalls.h>
#include <stdio.h>

_Noreturn void __badassert(const char *func, const char *file, int line) {
	fprintf(stderr, "assertion failure %s:%s:%u\n", file, func, line);
	_syscall_exit(1);
}