mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* iseq.h, iseq.c (rb_iseq_new_main): add a type ISEQ_TYPE_MAIN.
[ruby-dev:37619] * compile.c (rb_dvar_defined, ruby_iseq_compile): ditto. * iseq.c (iseq_data_to_ary, iseq_load): ditto. * compile.c (iseq_compile_each): fix to check ip->compile_data. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5effdad2cd
commit
6c08b4522d
4 changed files with 40 additions and 3 deletions
3
iseq.h
3
iseq.h
|
|
@ -30,7 +30,8 @@ struct st_table *ruby_insn_make_insn_table(void);
|
|||
#define ISEQ_TYPE_RESCUE INT2FIX(5)
|
||||
#define ISEQ_TYPE_ENSURE INT2FIX(6)
|
||||
#define ISEQ_TYPE_EVAL INT2FIX(7)
|
||||
#define ISEQ_TYPE_DEFINED_GUARD INT2FIX(8)
|
||||
#define ISEQ_TYPE_MAIN INT2FIX(8)
|
||||
#define ISEQ_TYPE_DEFINED_GUARD INT2FIX(9)
|
||||
|
||||
#define CATCH_TYPE_RESCUE INT2FIX(1)
|
||||
#define CATCH_TYPE_ENSURE INT2FIX(2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue