Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ruby/debug
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1b538ff559d3fc847d2949dd8899c1b1d3c6909a
Choose a base ref
..
head repository: ruby/debug
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: acdc9bdbcb46e9e6d51fe90e8dcf1ebe778b880e
Choose a head ref
Showing with 5 additions and 5 deletions.
  1. +3 −3 ext/debug/debug.c
  2. +1 −1 ext/debug/extconf.rb
  3. +1 −1 ext/debug/iseq_collector.c
6 changes: 3 additions & 3 deletions ext/debug/debug.c
Original file line number Diff line number Diff line change
@@ -180,14 +180,14 @@ iseq_last_line(VALUE iseqw)
}
#endif

#ifdef CRUBY
#ifdef HAVE_RB_ISEQ
void Init_iseq_collector(void);
#endif

void
Init_debug(void)
{
#ifdef CRUBY
#ifdef HAVE_RB_ISEQ
VALUE rb_mRubyVM = rb_const_get(rb_cObject, rb_intern("RubyVM"));
VALUE rb_cISeq = rb_const_get(rb_mRubyVM, rb_intern("InstructionSequence"));
#endif
@@ -214,7 +214,7 @@ Init_debug(void)
rb_define_method(rb_cISeq, "last_line", iseq_last_line, 0);
#endif

#ifdef CRUBY
#ifdef HAVE_RB_ISEQ
Init_iseq_collector();
#endif
}
2 changes: 1 addition & 1 deletion ext/debug/extconf.rb
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
$distcleanfiles << "debug_version.h"

if defined? RubyVM
$defs << '-DCRUBY'
$defs << '-DHAVE_RB_ISEQ'
$defs << '-DHAVE_RB_ISEQ_PARAMETERS'
$defs << '-DHAVE_RB_ISEQ_CODE_LOCATION'

2 changes: 1 addition & 1 deletion ext/debug/iseq_collector.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <ruby/ruby.h>

#ifdef CRUBY
#ifdef HAVE_RB_ISEQ
VALUE rb_iseqw_new(VALUE v);
void rb_objspace_each_objects(
int (*callback)(void *start, void *end, size_t stride, void *data),