#ifndef _ASSERT_H #define _ASSERT_H 1 #ifdef NDEBUG #define assert(ignore)((void)0) #else #include #define assert(condition) \ if(!(condition)) { \ fprintf(stderr, "%s:%s:%s: Assertion '%s' failed!\n", \ __FILE__, __LINE__, __FUNCTION__, #condition); \ abort(); \ } #endif #endif