Leaked source code of windows server 2003
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.
 
 
 
 
 
 

48 lines
1016 B

/*++
Copyright (C) Microsoft Corporation, 1996 - 1999
Module Name:
MiscDef.h
Abstract:
This file contains miscellanious definitions, including the debug trace macros
written by Chris Dudley
Author:
Amanda Matlosz 12/15/97
Environment:
Win32, C++ w/Exceptions, MFC
Revision History:
Notes:
intended only for use in the scarddlg project
--*/
#ifndef __MISC_H__
#define __MISC_H__
#ifdef _DEBUG
#define TRACE_STR(name,sz) \
TRACE(_T("SCardDlg.DLL: %s: %s\n"), name, sz)
#define TRACE_CODE(name,code) \
TRACE(_T("SCardDlg.DLL: %s: error = 0x%x\n"), name, code)
#define TRACE_CATCH(name,code) TRACE_CODE(name,code)
#define TRACE_CATCH_UNKNOWN(name) TRACE_STR(name,_T("An unidentified exception has occurred!"))
#else
#define TRACE_STR(name,sz) ((void)0)
#define TRACE_CODE(name,code) ((void)0)
#define TRACE_CATCH(name,code) ((void)0)
#define TRACE_CATCH_UNKNOWN(name) ((void)0)
#endif // _DEBUG
#endif // __MISC_H__