Moved GET_IP macro to winnt.h

This commit is contained in:
Ulrich Weigand 1999-11-13 20:56:01 +00:00 committed by Alexandre Julliard
parent 395d3705cf
commit 6bba78e1e7
2 changed files with 11 additions and 11 deletions

View File

@ -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 )
{

View File

@ -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__ */
/*