You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
453 B
30 lines
453 B
//
|
|
// 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 */
|
|
|