mirror of https://github.com/tongzx/nt5src
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.
22 lines
433 B
22 lines
433 B
// ASSERT.h -- Support for assertions...
|
|
#ifndef __ASSERT_H__
|
|
|
|
#define __ASSERT_H__
|
|
|
|
#ifdef _DEBUG
|
|
|
|
void STDCALL RonM_AssertionFailure(PSZ pszFileName, int nLine);
|
|
|
|
#define RonM_ASSERT(fTest) ((fTest) ? (void)0 : RonM_AssertionFailure(__FILE__, __LINE__))
|
|
#define DEBUGDEF(D) D;
|
|
#define DEBUGCODE(X) { X }
|
|
|
|
#else
|
|
|
|
#define RonM_ASSERT(fTest) ((void) 0)
|
|
#define DEBUGDEF(D)
|
|
#define DEBUGCODE(X)
|
|
|
|
#endif
|
|
|
|
#endif // __ASSERT_H__
|