Files
ygglibc/include/assert.h
T
2024-01-12 14:22:33 +02:00

14 lines
263 B
C

#ifndef _ASSERT_H
#define _ASSERT_H 1
#define assert(x) \
do { \
if (!(x)) { \
__assert_fail(__FILE__, __LINE__, #x); \
} \
} while(0)
[[noreturn]] void __assert_fail(const char *file, int line, const char *message);
#endif