mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 02:36:27 +01:00
Clarify error message.
If the #error hits, the operating system may be fine but the architecture won't be.
This commit is contained in:
parent
eea609c55e
commit
6e6b113a7e
@ -34,7 +34,7 @@ typedef CONTEXT SContext;
|
|||||||
#define CTX_R15 R15
|
#define CTX_R15 R15
|
||||||
#define CTX_RIP Rip
|
#define CTX_RIP Rip
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for architecture
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__APPLE__) && !defined(USE_SIGACTION_ON_APPLE)
|
#elif defined(__APPLE__) && !defined(USE_SIGACTION_ON_APPLE)
|
||||||
// for modules:
|
// for modules:
|
||||||
@ -63,7 +63,7 @@ typedef x86_thread_state64_t SContext;
|
|||||||
#define CTX_R15 __r15
|
#define CTX_R15 __r15
|
||||||
#define CTX_RIP __rip
|
#define CTX_RIP __rip
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for architecture
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@ -114,7 +114,7 @@ typedef mcontext_t SContext;
|
|||||||
#define CTX_SP sp
|
#define CTX_SP sp
|
||||||
#define CTX_PC pc
|
#define CTX_PC pc
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for architecture
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__NetBSD__)
|
#elif defined(__NetBSD__)
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
@ -138,7 +138,7 @@ typedef mcontext_t SContext;
|
|||||||
#define CTX_R15 __gregs[_REG_R15]
|
#define CTX_R15 __gregs[_REG_R15]
|
||||||
#define CTX_RIP __gregs[_REG_RIP]
|
#define CTX_RIP __gregs[_REG_RIP]
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for architecture
|
||||||
#endif
|
#endif
|
||||||
#elif defined(__FreeBSD__)
|
#elif defined(__FreeBSD__)
|
||||||
#include <ucontext.h>
|
#include <ucontext.h>
|
||||||
@ -162,7 +162,7 @@ typedef mcontext_t SContext;
|
|||||||
#define CTX_R15 mc_r15
|
#define CTX_R15 mc_r15
|
||||||
#define CTX_RIP mc_rip
|
#define CTX_RIP mc_rip
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for architecture
|
||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#error No context definition for OS
|
#error No context definition for OS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user