2025-04-27 07:49:33 -04:00

31 lines
453 B
C

//
// cuidebug.h
// = debug functions in CUILIB =
//
#ifndef CUIDEBUG_H
#define CUIDEBUG_H
#if defined(_DEBUG) || defined(DEBUG)
//
// debug version
//
void CUIAssertProc( LPCTSTR szFile, int iLine, LPCSTR szEval );
#define Assert( f ) { if (!(BOOL)(f)) { CUIAssertProc( __FILE__, __LINE__, #f ); } }
#else /* !DEBUG */
//
// release version
//
#define Assert( f )
#endif /* !DEBUG */
#endif /* CUIDEBUG_H */