metal-cos/lib/libc/assert.c
2015-01-02 16:23:53 -08:00

12 lines
209 B
C

#include <stdio.h>
#include <stdlib.h>
void
__assert(const char *func, const char *file, int line, const char *expr)
{
fprintf(stderr, "Assert (%s): %s %s:%d\n", expr, func, file, line);
abort();
}