old-libc-kernel/include/assert.h
2016-07-27 12:12:22 +02:00

15 lines
No EOL
291 B
C

#ifndef __ASSERT_H
#define __ASSERT_H
#ifdef __cplusplus
extern "C" {
#endif
void __assert(const char *msg, const char *file, int line, int res);
#ifdef NDEBUG
#define assert(EX)
#else
#define assert(EX) (void)(__assert(#EX, __FILE__, __LINE__, EX))
#endif
#ifdef __cplusplus
}
#endif
#endif