Source code of Windows XP (NT5)
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.

43 lines
2.3 KiB

  1. #ifndef _DEFAULT_HEAP_HPP_
  2. #define _DEFAULT_HEAP_HPP_
  3. // Ruler
  4. // 1 2 3 4 5 6 7 8
  5. //345678901234567890123456789012345678901234567890123456789012345678901234567890
  6. /********************************************************************/
  7. /* */
  8. /* The standard layout. */
  9. /* */
  10. /* The standard layout for 'hpp' files for this code is as */
  11. /* follows: */
  12. /* */
  13. /* 1. Include files. */
  14. /* 2. Constants exported from the class. */
  15. /* 3. Data structures exported from the class. */
  16. /* 4. Forward references to other data structures. */
  17. /* 5. Class specifications (including inline functions). */
  18. /* 6. Additional large inline functions. */
  19. /* */
  20. /* Any portion that is not required is simply omitted. */
  21. /* */
  22. /********************************************************************/
  23. #ifdef _DEBUG
  24. #include "DebugHeap.hpp"
  25. typedef DEBUG_HEAP DEFAULT_HEAP;
  26. #else
  27. #include "FastHeap.hpp"
  28. typedef FAST_HEAP DEFAULT_HEAP;
  29. #endif
  30. /********************************************************************/
  31. /* */
  32. /* Default heap. */
  33. /* */
  34. /* The default heap is available for everyone as soon as the */
  35. /* memory allocator DLL has loaded. */
  36. /* */
  37. /********************************************************************/
  38. extern ROCKALL_LINKAGE DEFAULT_HEAP DefaultHeap;
  39. #endif