
//

//Assert.h


/*******************************************************
//
//	Name: Assert.h
//
//	Author: Dave Ratti
//
//	Date:6-04-01
//
//	Modified: Finished 6-04-01
//
//	Notes: This is a custom Assert macro that has a lot of cool
//  things the default one doesnt.
//
//
//
*********************************************************/

#if defined( _DEBUG )
extern bool CustomAssertFunction( bool, char*, int, char*, bool* );

#define Assert( exp, description ) \
   {  static bool ignoreAlways = false; \
      if( !ignoreAlways ) { \
         if( CustomAssertFunction( (int)(exp), description, \
                                   __LINE__, __FILE__, &ignoreAlways ) )  \
         { _asm { int 3 } } \
      } \
   }

#else
#define Assert( exp, description )
#endif
