You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wheeldetect/3part/Cyclops/include/Asserte.h

40 lines
612 B
C

/*!
* \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 <crtdbg.h>
#else
#include <assert.h>
#define _ASSERT(x) _ASSERTE(x)
#ifdef NDEBUG
#define _ASSERTE(x) ((void)0)
#else
#define _ASSERTE(x) assert(x)
#endif
#endif // WIN32
#endif // Asserte_h_