summaryrefslogtreecommitdiff
path: root/userland/libc/assert.c
blob: 6a3bd6e570eca9cd7a6977b0733eb923814e0024 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>

int debug_printf(const char *fmt, ...);

void aFailed(char *f, int l) {
  debug_printf("Assert failed\n");
  debug_printf("%s : %d\n", f, l);
  exit(1);
}