Files
CervusOS/usr/sysroot/usr/include/assert.h
T
alexvoste 1a9fd27a31 push
2026-05-07 02:22:25 +03:00

16 lines
332 B
C

#ifndef _ASSERT_H
#define _ASSERT_H
#ifdef NDEBUG
#define assert(cond) ((void)0)
#else
void __cervus_assert_fail(const char *expr, const char *file, int line, const char *func)
__attribute__((noreturn));
#define assert(cond) \
((cond) ? (void)0 : __cervus_assert_fail(#cond, __FILE__, __LINE__, __func__))
#endif
#endif