18 lines
296 B
C
18 lines
296 B
C
#ifndef H__assert
|
|
#define H__assert
|
|
|
|
#include "debug.h"
|
|
|
|
VOID FAR PASCAL AssertLog( LPSTR, int );
|
|
|
|
#define USES_ASSERT static char *__assertFile__ = __FILE__;
|
|
|
|
#define assert(x) \
|
|
{ \
|
|
if( !(x) ) { \
|
|
AssertLog( __assertFile__, __LINE__ ); \
|
|
} \
|
|
}
|
|
|
|
#endif
|