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.

32 lines
843 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1994.
  5. //
  6. // File: nest.hxx
  7. //
  8. // Contents: Nested Log Helping macros & function
  9. //
  10. // History: 17-Jul-94 BobDay Split off from THOPUTIL.HXX due
  11. // to header ordering problems.
  12. //
  13. //----------------------------------------------------------------------------
  14. #ifndef __NEST_HXX__
  15. #define __NEST_HXX__
  16. #if DBG == 1
  17. extern int _iThunkNestingLevel;
  18. char *NestingLevelString(void);
  19. #define DebugIncrementNestingLevel() (_iThunkNestingLevel++)
  20. #define DebugDecrementNestingLevel() (_iThunkNestingLevel--)
  21. #else
  22. #define DebugIncrementNestingLevel()
  23. #define DebugDecrementNestingLevel()
  24. #endif
  25. #endif // #ifndef __NEST_HXX__