nckernel  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
assert.c
Go to the documentation of this file.
1 #include <sys/types.h>
2 #include <stdint.h>
3 #include <stdio.h>
4 #include <stddef.h>
5 #include <assert.h>
6 
7 #include <arch.h>
8 
9 void _assert(const char *func, int line, const char *str, int cond)
10 {
11  if (!cond) {
12  panic("[%s:%d] %s", func, line, str);
13  }
14 }
15 
16 /* End of a file */