diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 10:33:00 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-24 10:33:00 +0000 |
commit | 59202b7ab8147f3947900a919fcf82bc5f3e74e7 (patch) | |
tree | 56356944527511a657285f6b175577c552fb8d23 /insnhelper.h | |
parent | 1757fc9927fe25b761fca9f2391d1982e7a781c3 (diff) | |
download | ruby-59202b7ab8147f3947900a919fcf82bc5f3e74e7.tar.gz |
* 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.h | 5 |
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 |