e7f251fdb0
Based on what musl does.
12 lines
210 B
C
12 lines
210 B
C
#ifndef _BITS_ASSERT_H
|
|
#define _BITS_ASSERT_H
|
|
|
|
#ifdef NDEBUG
|
|
# define assert(cond) (void) 0
|
|
#else
|
|
# define assert(cond) \
|
|
((void)((cond) || (__assert(__func__, __FILE__, __LINE__, #cond), 0)))
|
|
#endif
|
|
|
|
#endif
|