summaryrefslogtreecommitdiff
path: root/src/qcommon/vm_x86.c
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2016-04-09 17:57:28 +0100
committerTim Angus <tim@ngus.net>2016-04-09 17:57:28 +0100
commitf45fbef604e05144057dec8d1dbfc5d4f5a2a822 (patch)
tree152d2a428b078f7a89756ea9e156695fc69f1686 /src/qcommon/vm_x86.c
parent7f9e97d611b4b267d9dd913144cb9632f96c90c2 (diff)
parent87abdd914988724e164ffb16380ad26be8420b84 (diff)
Merge branch 'master' into gpp
Diffstat (limited to 'src/qcommon/vm_x86.c')
-rw-r--r--src/qcommon/vm_x86.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/qcommon/vm_x86.c b/src/qcommon/vm_x86.c
index 2056785d..cdf8ad56 100644
--- a/src/qcommon/vm_x86.c
+++ b/src/qcommon/vm_x86.c
@@ -204,19 +204,25 @@ static void EmitRexString(byte rex, const char *string)
#define MASK_REG(modrm, mask) \
- EmitString("81"); \
- EmitString((modrm)); \
- Emit4((mask))
+ do { \
+ EmitString("81"); \
+ EmitString((modrm)); \
+ Emit4((mask)); \
+ } while(0)
// add bl, bytes
#define STACK_PUSH(bytes) \
- EmitString("80 C3"); \
- Emit1(bytes)
+ do { \
+ EmitString("80 C3"); \
+ Emit1(bytes); \
+ } while(0)
// sub bl, bytes
#define STACK_POP(bytes) \
- EmitString("80 EB"); \
- Emit1(bytes)
+ do { \
+ EmitString("80 EB"); \
+ Emit1(bytes); \
+ } while(0)
static void EmitCommand(ELastCommand command)
{