Merge branch 'assert' into 'master'
Make assert more hygienic See merge request redox-os/relibc!166
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#ifndef _BITS_ASSERT_H
|
||||
#define _BITS_ASSERT_H
|
||||
|
||||
#ifdef NDEBUG
|
||||
# define assert(cond)
|
||||
#else
|
||||
# define assert(cond) if (!(cond)) { \
|
||||
__assert(__func__, __FILE__, __LINE__, #cond); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user