Moved the TRACE_LDR macro from ntdll.h to utils.c.

svn path=/trunk/; revision=16165
This commit is contained in:
Hartmut Birr 2005-06-20 19:18:35 +00:00
parent ae955c39ed
commit 747c64b7c4
2 changed files with 9 additions and 9 deletions

View file

@ -3,15 +3,6 @@
#include <ntos/ntdef.h>
#endif
#ifdef NDEBUG
#if defined(__GNUC__)
#define TRACE_LDR(args...) if (RtlGetNtGlobalFlags() & FLG_SHOW_LDR_SNAPS) { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); }
#else
#endif /* __GNUC__ */
#else
#define TRACE_LDR(args...) do { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0)
#endif
/* Macros expanding to the appropriate inline assembly to raise a breakpoint */
#if defined(_M_IX86)
#define ASM_BREAKPOINT "\nint $3\n"

View file

@ -27,6 +27,15 @@
/* GLOBALS *******************************************************************/
#ifdef NDEBUG
#if defined(__GNUC__)
#define TRACE_LDR(args...) if (RtlGetNtGlobalFlags() & FLG_SHOW_LDR_SNAPS) { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); }
#else
#endif /* __GNUC__ */
#else
#define TRACE_LDR(args...) do { DbgPrint("(LDR:%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0)
#endif
typedef struct _TLS_DATA
{
PVOID StartAddressOfRawData;