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.

45 lines
1.1 KiB

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