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.

55 lines
937 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. memory.h
  5. Abstract:
  6. Private header file for memory functions within setup api dll.
  7. These headers were moved from setupntp.h into a private header
  8. Author:
  9. Andrew Ritz (AndrewR) 2-Feb-2000
  10. Revision History:
  11. --*/
  12. //
  13. // Debug memory functions and wrappers to track allocations
  14. //
  15. #if MEM_DBG
  16. VOID
  17. SetTrackFileAndLine (
  18. PCSTR File,
  19. UINT Line
  20. );
  21. VOID
  22. ClrTrackFileAndLine (
  23. VOID
  24. );
  25. #define TRACK_ARG_DECLARE PCSTR __File, UINT __Line
  26. #define TRACK_ARG_COMMA ,
  27. #define TRACK_ARG_CALL __FILE__, __LINE__
  28. #define TRACK_PUSH SetTrackFileAndLine(__File, __Line);
  29. #define TRACK_POP ClrTrackFileAndLine();
  30. #else
  31. #define TRACK_ARG_DECLARE
  32. #define TRACK_ARG_COMMA
  33. #define TRACK_ARG_CALL
  34. #define TRACK_PUSH
  35. #define TRACK_POP
  36. #endif