9 lines
189 B
C
9 lines
189 B
C
|
#ifndef _ASSERT_H_
|
||
|
#define _ASSERT_H_
|
||
|
|
||
|
#include <stddef.h>
|
||
|
#include <stdlib.h>
|
||
|
|
||
|
#define assert(x) ((void)((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0)))
|
||
|
|
||
|
#endif // _ASSERT_H_
|