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.

56 lines
1.5 KiB

  1. //
  2. // Copyright (c) Microsoft Corporation 1993-1995
  3. //
  4. // rovdbg.h
  5. //
  6. // Provides debug macro code that is needed to allow the binary to
  7. // link.
  8. //
  9. // This file should be included by only one source in your project.
  10. // If you get multiple redefinitions of the supplied functions, then
  11. // you are not doing something right. Sorry to be so blunt.
  12. //
  13. // These functions are not declared if NODEBUGHELP is defined.
  14. //
  15. // History:
  16. // 09-21-95 ScottH Created
  17. //
  18. #ifndef __ROVDBG_H__
  19. #define __ROVDBG_H__
  20. #if !defined(__ROVCOMM_H__)
  21. #error ROVCOMM.H must be included to use the common debug macros!
  22. #endif
  23. #if !defined(NODEBUGHELP) && defined(DEBUG)
  24. #pragma data_seg(DATASEG_READONLY)
  25. #ifndef NOPROFILE
  26. WCHAR const FAR c_szRovIniFile[] = SZ_DEBUGINI;
  27. WCHAR const FAR c_szRovIniSecDebugUI[] = SZ_DEBUGSECTION;
  28. #endif
  29. #ifdef WINNT
  30. // We don't use the TEXT() macro's here, because we want to define these as
  31. // Unicode even when were in a non-unicode module.
  32. WCHAR const FAR c_wszNewline[] = L"\r\n";
  33. WCHAR const FAR c_wszTrace[] = L"t " SZ_MODULEW L" ";
  34. WCHAR const FAR c_wszAssertFailed[] = SZ_MODULEW L" Assertion failed in %s on line %d\r\n";
  35. #endif // WINNT
  36. CHAR const FAR c_szNewline[] = "\r\n";
  37. CHAR const FAR c_szTrace[] = "t " SZ_MODULEA " ";
  38. CHAR const FAR c_szAssertFailed[] = SZ_MODULEA " Assertion failed in %s on line %d\r\n";
  39. #pragma data_seg()
  40. #endif // !defined(NODEBUGHELP) && defined(DEBUG)
  41. #endif __ROVDBG_H__