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) { \
41if (!expression) { \
42/* vfprintf(stderr, "ASSERT failed: %s line %d: %s \n", __FILE__, \
43 __LINE__, (#expression)); */\
44 abort(); }}
45#else
46#define assert(expression) ((void)0)
47#endif
48
49#endif