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.

46 lines
813 B

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 1998 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * debug.h
  8. *
  9. * Abstract:
  10. *
  11. * Macros used for debugging purposes
  12. *
  13. * Revision History:
  14. *
  15. * 12/02/1998 davidx
  16. * Created it.
  17. *
  18. \**************************************************************************/
  19. #ifndef _DEBUG_H
  20. #define _DEBUG_H
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. #if DBG
  25. #define ASSERT(cond) { if (!(cond)) DebugBreak(); }
  26. #else // !DBG
  27. //--------------------------------------------------------------------------
  28. // Retail build
  29. //--------------------------------------------------------------------------
  30. #define ASSERT(cond)
  31. #endif // !DBG
  32. #ifdef __cplusplus
  33. }
  34. #endif
  35. #endif // !_DEBUG_H