Skip to content

Commit c9a2ff2

Browse files
viuginick1valich
authored andcommitted
workaround for 2.5.0-preview1
1 parent 63f8e66 commit c9a2ff2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ext/hacks.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
#define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))
55

66
#if RUBY_API_VERSION_CODE >= 20500
7-
#define TH_CFP(thread) (GET_CFP())
7+
#if (RUBY_RELEASE_YEAR == 2017 && RUBY_RELEASE_MONTH == 10 && RUBY_RELEASE_DAY == 10) //workaround for 2.5.0-preview1
8+
#define TH_CFP(thread) ((rb_control_frame_t *)(thread)->ec.cfp)
9+
#else
10+
#define TH_CFP(thread) ((rb_control_frame_t *)(thread)->ec->cfp)
11+
#endif
812
#else
913
#define TH_CFP(thread) ((rb_control_frame_t *)(thread)->cfp)
1014
#endif

lib/debase/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debase
2-
VERSION = "0.2.2.beta13" unless defined? VERSION
2+
VERSION = "0.2.2.beta14" unless defined? VERSION
33
end

0 commit comments

Comments
 (0)