Skip to content

Commit 5b468c9

Browse files
nobudenofevil
authored andcommitted
fix macro name.
1 parent 0bbc9d7 commit 5b468c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/ruby_debug/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
}
1616

1717
if RUBY_REVISION >= 26959 # rb_iseq_compile_with_option was added an argument filepath
18-
$CFLAGS << ' -DRB_ISEQ_COMPILE_6ARGS'
18+
$defs << '-DRB_ISEQ_COMPILE_5ARGS'
1919
end
2020

2121
dir_config("ruby")

ext/ruby_debug/ruby_debug.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
int rb_vm_get_sourceline(const rb_control_frame_t *cfp); /* from vm.c */
2424
/* from iseq.c */
25-
#ifdef RB_ISEQ_COMPILE_6ARGS
25+
#ifdef RB_ISEQ_COMPILE_5ARGS
2626
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
2727
#else
2828
VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt);
@@ -687,7 +687,7 @@ create_catch_table(debug_context_t *debug_context, unsigned long cont)
687687
GET_THREAD()->parse_in_eval++;
688688
GET_THREAD()->mild_compile_error++;
689689
/* compiling with option Qfalse (no options) prevents debug hook calls during this catch routine */
690-
#ifdef RB_ISEQ_COMPILE_6ARGS
690+
#ifdef RB_ISEQ_COMPILE_5ARGS
691691
catch_table->iseq = rb_iseq_compile_with_option(
692692
rb_str_new_cstr("begin\nend"), rb_str_new_cstr("(exception catcher)"), Qnil, INT2FIX(1), Qfalse);
693693
#else

0 commit comments

Comments
 (0)