mirror of
https://github.com/fluencelabs/musl
synced 2025-06-23 03:31:55 +00:00
initial check-in, version 0.5.0
This commit is contained in:
17
include/assert.h
Normal file
17
include/assert.h
Normal file
@ -0,0 +1,17 @@
|
||||
#undef assert
|
||||
|
||||
#ifdef NDEBUG
|
||||
#define assert(x) (void)0
|
||||
#else
|
||||
#define assert(x) ((x) || (__assert_fail(#x, __FILE__, __LINE__, __func__),0))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void __assert_fail (const char *, const char *, int, const char *);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user