windows-nt/Source/XPSP1/NT/base/wmi/cdmprov/debug.h
2020-09-26 16:20:57 +08:00

26 lines
591 B
C

//***************************************************************************
//
// debug.CPP
//
// Module: CDM Provider
//
// Purpose: Debugging routines
//
// Copyright (c) 2000 Microsoft Corporation
//
//***************************************************************************
#ifdef DBG
void __cdecl DebugOut(char *Format, ...);
#define WmipDebugPrint(_x_) { DebugOut _x_; }
#define WmipAssert(x) if (! (x) ) { \
WmipDebugPrint(("CDMPROV Assertion: "#x" at %s %d\n", __FILE__, __LINE__)); \
DebugBreak(); }
#else
#define WmipDebugPrint(x)
#define WmipAssert(x)
#endif