/usr/share/z88dk/include/assert.h is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 26 27 28 29 | /*
*
* assert.h
*
* Assertion - use liberally for debugging. Defining NDEBUG
* turns assertions off.
* assert(exp) where exp is non-zero does nothing, while
* assert(exp) where exp evaluates to zero aborts the program
* with a message like
*
* Assertion failed: prog.c line 123: "exp"
*
* djm 28/2/2000
*
* $Id: assert.h,v 1.3 2001/10/16 18:30:31 dom Exp $
*
*/
#ifndef __ASSERT_H__
#define __ASSERT_H__
#ifndef NDEBUG
extern void __LIB__ l_assert(int, char *, char *);
#define assert(exp) if((exp==0)) {l_assert(__LINE__, __FILE__, #exp );}
#else
#define assert(exp)
#endif /* NDEBUG */
#endif /* _ASSERT_H */
|