-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathassert.h
More file actions
25 lines (21 loc) · 1 KB
/
assert.h
File metadata and controls
25 lines (21 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*********************************************************************/
/* */
/* This Program Written by Paul Edwards. */
/* Released to the Public Domain */
/* */
/*********************************************************************/
/*********************************************************************/
/* */
/* assert.h - assert header file. */
/* */
/*********************************************************************/
#ifndef __ASSERT_INCLUDED
#define __ASSERT_INCLUDED
int __assert(char *x, char *y, int z);
#ifdef NDEBUG
#define assert(ignore) ((void)0)
#else
#define assert(x) (x) ? ((void)0) : \
__assert(#x, __FILE__, __LINE__)
#endif
#endif