assert.h (290B)
1 #ifndef _LEDIT_ASSERT_H_ 2 #define _LEDIT_ASSERT_H_ 3 4 /* based on the assert found in OpenBSD */ 5 void ledit_assert_impl(const char *file, int line, const char *func, const char *failedexpr); 6 #define ledit_assert(e) ((e) ? (void)0 : ledit_assert_impl(__FILE__, __LINE__, __func__, #e)) 7 8 #endif