provide loff_t for splice syscall
[musl] / include / assert.h
1 #undef assert
2
3 #if __STDC_VERSION__ >= 201112L
4 #elif defined(__GNUC__)
5 #define _Noreturn __attribute__((__noreturn__))
6 #else
7 #define _Noreturn
8 #endif
9
10 #ifdef NDEBUG
11 #define assert(x) (void)0
12 #else
13 #define assert(x) ((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))
14 #endif
15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
20 _Noreturn void __assert_fail (const char *, const char *, int, const char *);
21
22 #ifdef __cplusplus
23 }
24 #endif