This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit 1c88e9272b77ee8c40e25149d6aa286af4be1531
Author: Donny <m4n4t4...@gmail.com>
Date:   Mon Jul 13 07:06:07 2015 -0400

    All: Make more vm_x86 macros use braces
---
 MP/code/qcommon/vm_x86.c | 20 +++++++++++++-------
 SP/code/qcommon/vm_x86.c | 20 +++++++++++++-------
 2 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/MP/code/qcommon/vm_x86.c b/MP/code/qcommon/vm_x86.c
index 3ec42ee..9ee2679 100644
--- a/MP/code/qcommon/vm_x86.c
+++ b/MP/code/qcommon/vm_x86.c
@@ -203,19 +203,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)
 {
diff --git a/SP/code/qcommon/vm_x86.c b/SP/code/qcommon/vm_x86.c
index 3ec42ee..9ee2679 100644
--- a/SP/code/qcommon/vm_x86.c
+++ b/SP/code/qcommon/vm_x86.c
@@ -203,19 +203,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)
 {

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/iortcw.git

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to