XenevaOS
Loading...
Searching...
No Matches
assert.h
Go to the documentation of this file.
1
32#ifndef __ASSERT_H__
33#define __ASSERT_H__
34
35#include <stdio.h>
36#include <stdint.h>
37#include <stdlib.h>
38
39#if !defined(NDEBUG)
40#define assert(expression) \
41 { \
42 if (!expression) { \
43 /* vfprintf(stderr, "ASSERT failed: %s line %d: %s \n", __FILE__, \
44 __LINE__, (#expression)); */ \
45 abort(); \
46 } \
47 }
48#else
49#define assert(expression) ((void)0)
50#endif
51
52#endif