Source code of Windows XP (NT5)
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.

41 lines
1.0 KiB

  1. /****************************************************************************
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name: debug.h
  4. Abstract: Debug routines
  5. Author: radus - 11/05/98
  6. ****************************************************************************/
  7. #if DBG
  8. #define DBGOUT(arg) LibDbgPrt arg
  9. #define assert(condition) if(condition);else \
  10. { DebugAssertFailure (_T(__FILE__), __LINE__, _T(#condition)); }
  11. void
  12. LibDbgPrt(
  13. DWORD dwDbgLevel,
  14. PSTR DbgMessage,
  15. ...
  16. );
  17. void DebugAssertFailure (LPCTSTR file, DWORD line, LPCTSTR condition);
  18. #else // DBG
  19. #define DBGOUT(_x_)
  20. #define assert(condition)
  21. #endif // DBG
  22. #define EXIT_IF_DWERROR() \
  23. if(dwError !=ERROR_SUCCESS) \
  24. { \
  25. goto forced_exit; \
  26. }