bugfix: do not use unknown conditional symbols

This commit is contained in:
Araq 2014-12-05 17:19:00 +01:00
commit 0011bdfb95

View file

@ -6743,13 +6743,13 @@ const
EXCEPTION_READ_FAULT* = 0 # Access violation was caused by a read EXCEPTION_READ_FAULT* = 0 # Access violation was caused by a read
EXCEPTION_WRITE_FAULT* = 1 # Access violation was caused by a write EXCEPTION_WRITE_FAULT* = 1 # Access violation was caused by a write
when defined(cpuia64): when hostCPU == "ia64":
const const
EXCEPTION_EXECUTE_FAULT* = 2 # Access violation was caused by an instruction fetch EXCEPTION_EXECUTE_FAULT* = 2 # Access violation was caused by an instruction fetch
else: else:
const const
EXCEPTION_EXECUTE_FAULT* = 8 EXCEPTION_EXECUTE_FAULT* = 8
when defined(cpupowerpc32): when hostCPU == "powerpc":
# ppc # ppc
const const
CONTEXT_CONTROL* = 1 CONTEXT_CONTROL* = 1
@ -6758,7 +6758,7 @@ when defined(cpupowerpc32):
CONTEXT_DEBUG_REGISTERS* = 8 CONTEXT_DEBUG_REGISTERS* = 8
CONTEXT_FULL* = CONTEXT_CONTROL or CONTEXT_FLOATING_POINT or CONTEXT_INTEGER CONTEXT_FULL* = CONTEXT_CONTROL or CONTEXT_FLOATING_POINT or CONTEXT_INTEGER
CONTEXT_DEBUGGER* = CONTEXT_FULL CONTEXT_DEBUGGER* = CONTEXT_FULL
when defined(cpui386): when hostCPU == "i386":
# x86 # x86
# The doc refered me to winnt.h, so I had to look... # The doc refered me to winnt.h, so I had to look...
const const
@ -6776,7 +6776,7 @@ when defined(cpui386):
CONTEXT_DEBUG_REGISTERS or CONTEXT_EXTENDED_REGISTERS # our own invention CONTEXT_DEBUG_REGISTERS or CONTEXT_EXTENDED_REGISTERS # our own invention
FLAG_TRACE_BIT* = 0x00000100 FLAG_TRACE_BIT* = 0x00000100
CONTEXT_DEBUGGER* = CONTEXT_FULL or CONTEXT_FLOATING_POINT CONTEXT_DEBUGGER* = CONTEXT_FULL or CONTEXT_FLOATING_POINT
when defined(cpux86_64): when hostCPU == "amd64":
const const
INITIAL_MXCSR* = 0x00001F80 # initial MXCSR value INITIAL_MXCSR* = 0x00001F80 # initial MXCSR value
INITIAL_FPCSR* = 0x0000027F # initial FPCSR value INITIAL_FPCSR* = 0x0000027F # initial FPCSR value
@ -7778,7 +7778,7 @@ elif defined(x86_64):
LastExceptionToRip*: DWORD64 LastExceptionToRip*: DWORD64
LastExceptionFromRip*: DWORD64 LastExceptionFromRip*: DWORD64
elif defined(powerpc32): elif hostCPU == "powerpc":
# ppc # ppc
# Floating point registers returned when CONTEXT_FLOATING_POINT is set # Floating point registers returned when CONTEXT_FLOATING_POINT is set
# Integer registers returned when CONTEXT_INTEGER is set. # Integer registers returned when CONTEXT_INTEGER is set.