home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NEXT Generation 27
/
NEXT27.iso
/
pc
/
demos
/
emperor
/
dx3.exe
/
SDK
/
SAMPLES
/
DSSHOW
/
WASSERT.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-08-28
|
853b
|
29 lines
/*==========================================================================
*
* Copyright (C) 1995-1996 Microsoft Corporation. All Rights Reserved.
*
* File: wassert.h
* Content: assert header
*
***************************************************************************/
#ifndef __WASSERT_INCLUDED__
#define __WASSERT_INCLUDED__
#ifdef _DEBUG
#define ASSERT // Enable the Assert() macro
#endif
#ifdef ASSERT
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
#endif // ~ASSERT
#endif