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.

23 lines
659 B

  1. // 1632COM.H
  2. //
  3. // Created 19-Jul-96 [JonT]
  4. #ifndef _1632COM_H
  5. #define _1632COM_H
  6. // Debug stuff
  7. #if defined (DEBUG) || defined (_DEBUG)
  8. #define Assert(x, msg) { if (!(x)) { char szBuf[256]; \
  9. wsprintf((LPSTR)szBuf, (LPSTR)"DCAP: %s %s(%d)\r\n", (LPSTR)(msg),\
  10. (LPSTR)__FILE__, __LINE__); \
  11. OutputDebugString((LPSTR)szBuf); DebugBreak(); } }
  12. #define DebugSpew(msg) { char szBuf[256]; \
  13. wsprintf((LPSTR)szBuf, (LPSTR)"DCAP: %s %s(%d)\r\n", (LPSTR)(msg),\
  14. (LPSTR)__FILE__, __LINE__); \
  15. OutputDebugString((LPSTR)szBuf); }
  16. #else
  17. #define Assert(x, msg)
  18. #define DebugSpew(msg)
  19. #endif
  20. #endif // #ifndef _1632COM_H