windows-nt/Source/XPSP1/NT/net/layer2svc/zeroconf/cmdtool/errctrl.h

39 lines
748 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
#ifndef _ERRCTRL_H
#define _ERRCTRL_H
#ifdef DBG
// Parameters:
// (BOOL bCond, LPCTSTR cszFmt, ...)
// Semantics:
// Condition bCond is expected to be TRUE. If this
// doesn't happen, message is displayed and program
// is exited.
// Usage:
// _Assert((
// errCode == ERROR_SUCCESS,
// "Err code %d returned from call.\n",
// GetLastError()
// ));
// Output:
//
#define _Assert(params) _Asrt params;
#else
// No code is generated for asserts in fre builds
#define _Assert
#endif
VOID _Asrt(BOOL bCond,
LPCTSTR cszFmt,
...);
DWORD _Err(DWORD dwErrCode,
LPCTSTR cszFmt,
...);
DWORD _Wrn(DWORD dwWarnCode,
LPCTSTR cszFmt,
...);
#endif