summaryrefslogtreecommitdiff
path: root/insnhelper.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 10:33:00 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 10:33:00 +0000
commit59202b7ab8147f3947900a919fcf82bc5f3e74e7 (patch)
tree56356944527511a657285f6b175577c552fb8d23 /insnhelper.h
parent1757fc9927fe25b761fca9f2391d1982e7a781c3 (diff)
* insnhelper.h (RESTORE_REGS): add do/while(0) around macro.
* vm.c, vm_macro.def: remove macro_eval_invoke_func() and add vm_setup_method(). use it instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insnhelper.h')
-rw-r--r--insnhelper.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/insnhelper.h b/insnhelper.h
index 2eb071df5f..3801e5a41b 100644
--- a/insnhelper.h
+++ b/insnhelper.h
@@ -41,10 +41,9 @@
#define REG_LFP (REG_CFP->lfp)
#define REG_DFP (REG_CFP->dfp)
-#define RESTORE_REGS() \
-{ \
+#define RESTORE_REGS() do { \
REG_CFP = th->cfp; \
-}
+} while (0)
#define REG_A reg_a
#define REG_B reg_b