mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@a454137
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fc1f3f14d3
commit
9dc121cc57
143 changed files with 328 additions and 146 deletions
|
@ -65,6 +65,12 @@ VALUE kernel_spec_rb_block_call_no_func(VALUE self, VALUE ary) {
|
|||
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RB_FRAME_THIS_FUNC
|
||||
VALUE kernel_spec_rb_frame_this_func(VALUE self) {
|
||||
return ID2SYM(rb_frame_this_func());
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RB_ENSURE
|
||||
VALUE kernel_spec_rb_ensure(VALUE self, VALUE main_proc, VALUE arg,
|
||||
VALUE ensure_proc, VALUE arg2) {
|
||||
|
@ -350,6 +356,11 @@ void Init_kernel_spec(void) {
|
|||
rb_define_method(cls, "rb_block_proc", kernel_spec_rb_block_proc, 0);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RB_FRAME_THIS_FUNC
|
||||
rb_define_method(cls, "rb_frame_this_func_test", kernel_spec_rb_frame_this_func, 0);
|
||||
rb_define_method(cls, "rb_frame_this_func_test_again", kernel_spec_rb_frame_this_func, 0);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_RB_ENSURE
|
||||
rb_define_method(cls, "rb_ensure", kernel_spec_rb_ensure, 4);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue