nckernel
0.1
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
slibc
port
src
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 */
Generated on Thu Nov 7 2013 02:45:25 for nckernel by
1.8.4