65816-llvm-mos/runtime/include/assert.h
Scott Duensing 6d7eae0356 Checkpoint.
2026-04-30 01:29:16 -05:00

14 lines
331 B
C

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