diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-08 08:12:24 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-08-08 08:12:24 +0000 |
commit | dcfaf3e277fcadda493757e69b89e3260cd3636f (patch) | |
tree | 969a29e5742c10c1bceffb4af2e167c1c8701908 /compile.c | |
parent | e2f5d4f9c780cf1c1ecf57f8265ef916f973dc1e (diff) | |
download | ruby-dcfaf3e277fcadda493757e69b89e3260cd3636f.tar.gz |
* compile.c (ADD_INSNL): make ADD_INSNSL as alias of ADD_INSN1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -185,16 +185,14 @@ r_value(VALUE value) #define ADD_INSN(seq, line, insn) \ ADD_ELEM((seq), (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0)) -/* add an instruction with label operand */ -#define ADD_INSNL(seq, line, insn, label) \ - ADD_ELEM((seq), (LINK_ELEMENT *) \ - new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(label))) - /* add an instruction with some operands (1, 2, 3, 5) */ #define ADD_INSN1(seq, line, insn, op1) \ ADD_ELEM((seq), (LINK_ELEMENT *) \ new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(op1))) +/* add an instruction with label operand (alias of ADD_INSN1) */ +#define ADD_INSNL(seq, line, insn, label) ADD_INSN1(seq, line, insn, label) + #define ADD_INSN2(seq, line, insn, op1, op2) \ ADD_ELEM((seq), (LINK_ELEMENT *) \ new_insn_body(iseq, (line), BIN(insn), 2, (VALUE)(op1), (VALUE)(op2))) |