diff options
Diffstat (limited to 'userland/libc/assert.c')
-rw-r--r-- | userland/libc/assert.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/userland/libc/assert.c b/userland/libc/assert.c new file mode 100644 index 0000000..4082f64 --- /dev/null +++ b/userland/libc/assert.c @@ -0,0 +1,9 @@ +#include <assert.h> +#include <stdio.h> +#include <stdlib.h> + +void aFailed(char *f, int l) { + printf("Assert failed\n"); + printf("%s : %d\n", f, l); + exit(1); +} |