@@ -137,7 +137,7 @@ real_class(VALUE klass)
137
137
inline static void *
138
138
ruby_method_ptr (VALUE class , ID meth_id )
139
139
{
140
- #ifdef RUBY_VERSION_1_9_1
140
+ #ifndef HAVE_RB_METHOD_ENTRY
141
141
NODE * body , * method ;
142
142
st_lookup (RCLASS_M_TBL (class ), meth_id , (st_data_t * )& body );
143
143
method = (NODE * )body -> u2 .value ;
@@ -726,7 +726,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
726
726
char * file = (char * )rb_sourcefile ();
727
727
int line = rb_sourceline ();
728
728
int moved = 0 ;
729
- #ifdef RUBY_VERSION_1_9_1
729
+ #ifndef HAVE_RB_METHOD_ENTRY
730
730
NODE * node = NULL ;
731
731
#else
732
732
rb_method_entry_t * me = NULL ;
@@ -748,7 +748,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
748
748
749
749
if (mid == ID_ALLOCATOR ) return ;
750
750
751
- #ifdef RUBY_VERSION_1_9_1
751
+ #ifndef HAVE_RB_METHOD_ENTRY
752
752
node = rb_method_node (klass , mid );
753
753
#else
754
754
me = rb_method_entry (klass , mid );
@@ -964,7 +964,7 @@ debug_event_hook(rb_event_flag_t event, VALUE data, VALUE self, ID mid, VALUE kl
964
964
case RUBY_EVENT_C_RETURN :
965
965
{
966
966
/* note if a block is given we fall through! */
967
- #ifdef RUBY_VERSION_1_9_1
967
+ #ifndef HAVE_RB_METHOD_ENTRY
968
968
if (!node || !c_call_new_frame_p (klass , mid ))
969
969
#else
970
970
if (!me || !c_call_new_frame_p (klass , mid ))
0 commit comments