Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation errors #110

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ext/debase_internals.c
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ call_at_line(debug_context_t *context, char *file, int line, VALUE context_objec
int count_stack_size() {
rb_thread_t *thread = ruby_current_thread;
rb_control_frame_t *last_cfp = TH_CFP(thread);
const rb_control_frame_t *start_cfp = RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
const rb_control_frame_t *start_cfp = (rb_control_frame_t *)RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
const rb_control_frame_t *cfp;

ptrdiff_t size, i;
Expand Down Expand Up @@ -715,12 +715,14 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
}
}
#else
static void
static VALUE
Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
return Qnil;
}

static void
static VALUE
Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
return Qnil;
}
#endif

Expand Down