/** @file assert.h * Module providing assert macro * * The module implements the assert macro intended to allow catching critical * issues during debug while having no influence in the release code */ #ifndef _ASSERT_H_ #define _ASSERT_H_ //--includes-------------------------------------------------------------------- #include "debug.h" //--type definitions------------------------------------------------------------ //--functions------------------------------------------------------------------- #if ASSERT #define assert(condition) _assert #else #define assert(condition) do {} while (0) #endif #endif //_ASSERT_H_