home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tricks of the Windows Gam…ming Gurus (2nd Edition)
/
Disc2.iso
/
msdn_vcb
/
samples
/
vc98
/
sdk
/
graphics
/
directx
/
dsstream
/
wassert.h
< prev
Wrap
C/C++ Source or Header
|
1997-07-14
|
919b
|
37 lines
/*==========================================================================
*
* Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
*
* File: wassert.h
* Content: assert header
*
***************************************************************************/
#ifndef __WASSERT_INCLUDED__
#define __WASSERT_INCLUDED__
#ifdef DEBUG
#define WASSERT // Enable the Assert() macro
#endif
#ifdef WASSERT
#ifdef _cplusplus
extern "C" {
#endif
void AssertFail(char [], char [], int, char[]);
#define Assert(f) ((f) ? (void)NULL : (void)AssertFail(#f, __FILE__, __LINE__,NULL))
#define AssertMessage(f, szMessage) ((f) ? (void)NULL : (void)AssertFail(#f, __FILE__, __LINE__, szMessage))
#else
#define Assert(f) (void)NULL // Macro that does nothing
#define AssertMessage(f, szMessage) (void)NULL
#ifdef _cplusplus
};
#endif
#endif // ~ASSERT
#endif