libc: add a range of header files

This commit is contained in:
2026-04-01 18:49:57 +01:00
parent c6ca934852
commit f2e650d368
8 changed files with 295 additions and 2 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef ASSERT_H_
#define ASSERT_H_
#define assert(cond) \
do { \
if (!(cond)) { \
__libc_assert_failed( \
__FILE__, \
__LINE__, \
__FUNCTION__, \
#cond); \
} \
} while (0)
extern void __libc_assert_failed(
const char *file,
int line,
const char *func,
const char *cond);
#endif