Files
KirkOS/ext2_root/usr/include/bits/glibc/glibc_assert.h
T
kaguya 9a9b91c940 user: implement mlibc as the libc, finally.
It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
2026-05-02 03:31:49 -04:00

33 lines
611 B
C

#ifndef MLIBC_GLIBC_ASSERT_H
#define MLIBC_GLIBC_ASSERT_H
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __MLIBC_ABI_ONLY
__attribute__ ((__noreturn__)) void __assert_fail_perror(int __errno, const char *__file, unsigned int __line,
const char *__function);
#endif /* !__MLIBC_ABI_ONLY */
#ifdef __cplusplus
}
#endif
#endif /* MLIBC_GLIBC_ASSERT_H */
#ifdef NDEBUG
#undef assert_perror
#define assert_perror(ignore) ((void)0)
#else /* NDEBUG */
#undef assert_perror
#define assert_perror(errno) (!(errno) \
|| (__assert_fail_perror((errno), __FILE__, __LINE__, __func__), 0))
#endif /* NDEBUG */