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

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1996 - 1999
  3. Module Name:
  4. MiscDef.h
  5. Abstract:
  6. This file contains miscellanious definitions, including the debug trace macros
  7. written by Chris Dudley
  8. Author:
  9. Amanda Matlosz 12/15/97
  10. Environment:
  11. Win32, C++ w/Exceptions, MFC
  12. Revision History:
  13. Notes:
  14. intended only for use in the scarddlg project
  15. --*/
  16. #ifndef __MISC_H__
  17. #define __MISC_H__
  18. #ifdef _DEBUG
  19. #define TRACE_STR(name,sz) \
  20. TRACE(_T("SCardDlg.DLL: %s: %s\n"), name, sz)
  21. #define TRACE_CODE(name,code) \
  22. TRACE(_T("SCardDlg.DLL: %s: error = 0x%x\n"), name, code)
  23. #define TRACE_CATCH(name,code) TRACE_CODE(name,code)
  24. #define TRACE_CATCH_UNKNOWN(name) TRACE_STR(name,_T("An unidentified exception has occurred!"))
  25. #else
  26. #define TRACE_STR(name,sz) ((void)0)
  27. #define TRACE_CODE(name,code) ((void)0)
  28. #define TRACE_CATCH(name,code) ((void)0)
  29. #define TRACE_CATCH_UNKNOWN(name) ((void)0)
  30. #endif // _DEBUG
  31. #endif // __MISC_H__