/*! * \file Asserte.h * \date 2018/06/12 * * \author Lin, Chi * Contact: lin.chi@hzleaper.com * * * \note */ #ifndef __Asserte_h_ #define __Asserte_h_ #if defined( _DEBUG ) && defined( NDEBUG ) #error Cannot have both _DEBUG and NDEBUG defined. #endif #if !defined( _DEBUG ) && !defined( NDEBUG ) #error Please, update imake configuration to define either _DEBUG or NDEBUG. #endif #ifdef WIN32 #include #else #include #define _ASSERT(x) _ASSERTE(x) #ifdef NDEBUG #define _ASSERTE(x) ((void)0) #else #define _ASSERTE(x) assert(x) #endif #endif // WIN32 #endif // Asserte_h_