windows-nt/Source/XPSP1/NT/com/ole32/olethunk/olethk32/nest.hxx
2020-09-26 16:20:57 +08:00

33 lines
843 B
C++

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1994.
//
// File: nest.hxx
//
// Contents: Nested Log Helping macros & function
//
// History: 17-Jul-94 BobDay Split off from THOPUTIL.HXX due
// to header ordering problems.
//
//----------------------------------------------------------------------------
#ifndef __NEST_HXX__
#define __NEST_HXX__
#if DBG == 1
extern int _iThunkNestingLevel;
char *NestingLevelString(void);
#define DebugIncrementNestingLevel() (_iThunkNestingLevel++)
#define DebugDecrementNestingLevel() (_iThunkNestingLevel--)
#else
#define DebugIncrementNestingLevel()
#define DebugDecrementNestingLevel()
#endif
#endif // #ifndef __NEST_HXX__