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.
46 lines
813 B
46 lines
813 B
/**************************************************************************\
|
|
*
|
|
* Copyright (c) 1998 Microsoft Corporation
|
|
*
|
|
* Module Name:
|
|
*
|
|
* debug.h
|
|
*
|
|
* Abstract:
|
|
*
|
|
* Macros used for debugging purposes
|
|
*
|
|
* Revision History:
|
|
*
|
|
* 12/02/1998 davidx
|
|
* Created it.
|
|
*
|
|
\**************************************************************************/
|
|
|
|
#ifndef _DEBUG_H
|
|
#define _DEBUG_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#if DBG
|
|
|
|
#define ASSERT(cond) { if (!(cond)) DebugBreak(); }
|
|
|
|
#else // !DBG
|
|
|
|
//--------------------------------------------------------------------------
|
|
// Retail build
|
|
//--------------------------------------------------------------------------
|
|
|
|
#define ASSERT(cond)
|
|
|
|
#endif // !DBG
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // !_DEBUG_H
|
|
|