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.

36 lines
971 B

  1. #ifdef __cplusplus
  2. extern "C" { /* Assume C declarations for C++ */
  3. #endif /* __cplusplus */
  4. #ifdef DEBUG
  5. void CDECL dprintf(LPSTR, ...);
  6. void CDECL dprintf2(LPSTR, ...);
  7. void CDECL dprintf3(LPSTR, ...);
  8. #define DPF dprintf
  9. #define DPF2 dprintf2
  10. #define DPF3 dprintf3
  11. #else
  12. #define DPF ; / ## /
  13. #define DPF2 ; / ## /
  14. #define DPF3 ; / ## /
  15. #endif
  16. #undef Assert
  17. #undef AssertSz
  18. #ifdef DEBUG
  19. /* Assert() macros */
  20. #define AssertSz(x,sz) ((x) ? (void)0 : (void)_Assert(sz, __FILE__, __LINE__))
  21. #define Assert(expr) AssertSz(expr, #expr)
  22. extern void FAR PASCAL _Assert(char *szExp, char *szFile, int iLine);
  23. #else
  24. /* Assert() macros */
  25. #define AssertSz(expr) ((void)0)
  26. #define Assert(expr) ((void)0)
  27. #endif
  28. #ifdef __cplusplus
  29. } /* End of extern "C" { */
  30. #endif /* __cplusplus */