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.

65 lines
1.2 KiB

  1. ////////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Filename : base.h
  4. // Project : pqs
  5. // Component: wordbreaker
  6. //
  7. // Author : urib
  8. //
  9. // Log:
  10. // Jun 27 2000 urib Move to use Trace(,, ()) instead of Trace((,,)).
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. #ifndef BASE_H
  14. #define BASE_H
  15. #pragma once
  16. #define PQS_CODE
  17. #define STRICT
  18. #include <windows.h>
  19. #include "tracer.h"
  20. //
  21. // Append PQS to all our tags
  22. //
  23. //
  24. // Append PQS to all our tags
  25. //
  26. typedef unsigned char* PUSZ;
  27. #if (defined (DEBUG) && !defined(_NO_TRACER)) || defined(USE_TRACER)
  28. #define TRACER_ON
  29. #endif
  30. #ifdef TRACER_ON
  31. #undef USES_TAG
  32. #undef Trace
  33. #define Trace(el, tag, x) \
  34. { \
  35. if (CheckTraceRestrictions(el, tag)) \
  36. { \
  37. CTempTrace1 tmp(__FILE__, __LINE__, tag, el); \
  38. tmp.TraceSZ x; \
  39. } \
  40. }
  41. #else
  42. #undef Trace
  43. #define Trace(el, tag, x)
  44. #endif
  45. #include "excption.h"
  46. #include "MemoryManagement.h"
  47. #include "vartypes.h"
  48. #endif /* BASE_H */