Moved GET_IP macro to winnt.h
This commit is contained in:
parent
395d3705cf
commit
6bba78e1e7
|
@ -25,17 +25,6 @@ typedef struct
|
|||
} EXC_NESTED_FRAME;
|
||||
|
||||
|
||||
#ifdef __i386__
|
||||
# define GET_IP(context) ((LPVOID)(context)->Eip)
|
||||
#endif
|
||||
#ifdef __sparc__
|
||||
# define GET_IP(context) ((LPVOID)(context)->pc)
|
||||
#endif
|
||||
|
||||
#ifndef GET_IP
|
||||
# error You must define GET_IP for this CPU
|
||||
#endif /* __i386__ */
|
||||
|
||||
/* Default hook for built-in debugger */
|
||||
static DWORD default_hook( EXCEPTION_RECORD *rec, CONTEXT *ctx, BOOL first )
|
||||
{
|
||||
|
|
|
@ -664,6 +664,17 @@ typedef HANDLE *PHANDLE;
|
|||
#define ISV86(context) (EFL_reg(context) & 0x00020000)
|
||||
#define V86BASE(context) ((context)->Dr7) /* ugly */
|
||||
|
||||
#ifdef __i386__
|
||||
# define GET_IP(context) ((LPVOID)(context)->Eip)
|
||||
#endif
|
||||
#ifdef __sparc__
|
||||
# define GET_IP(context) ((LPVOID)(context)->pc)
|
||||
#endif
|
||||
|
||||
#if !defined(GET_IP) && !defined(RC_INVOKED)
|
||||
# error You must define GET_IP for this CPU
|
||||
#endif
|
||||
|
||||
#endif /* __WINE__ */
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue