Skip to content

Commit 8ec533a

Browse files
committed
fix compilation for 1.9.x
1 parent bc44b8a commit 8ec533a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ruby_debug/ruby_debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ int rb_vm_get_sourceline(const rb_control_frame_t *cfp); /* from vm.c */
2424
/* from iseq.c */
2525
#ifdef HAVE_RB_ISEQ_COMPILE_ON_BASE
2626
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE absolute_path, VALUE line, rb_block_t *base_block, VALUE opt);
27-
#elif RB_ISEQ_COMPILE_5ARGS
27+
#elif HAVE_RB_ISEQ_NEW_MAIN
2828
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
2929
#else
3030
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt);
@@ -714,7 +714,7 @@ create_catch_table(debug_context_t *debug_context, unsigned long cont)
714714
#ifdef HAVE_RB_ISEQ_COMPILE_ON_BASE
715715
catch_table->iseq = rb_iseq_compile_with_option(
716716
rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), Qnil, INT2FIX(1), NULL, Qfalse);
717-
#elif RB_ISEQ_COMPILE_5ARGS
717+
#elif HAVE_RB_ISEQ_NEW_MAIN
718718
catch_table->iseq = rb_iseq_compile_with_option(
719719
rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), Qnil, INT2FIX(1), Qfalse);
720720
#else

0 commit comments

Comments
 (0)