We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63f8e66 commit c9a2ff2Copy full SHA for c9a2ff2
ext/hacks.h
@@ -4,7 +4,11 @@
4
#define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))
5
6
#if RUBY_API_VERSION_CODE >= 20500
7
- #define TH_CFP(thread) (GET_CFP())
+ #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
12
#else
13
#define TH_CFP(thread) ((rb_control_frame_t *)(thread)->cfp)
14
#endif
lib/debase/version.rb
@@ -1,3 +1,3 @@
1
module Debase
2
- VERSION = "0.2.2.beta13" unless defined? VERSION
+ VERSION = "0.2.2.beta14" unless defined? VERSION
3
end
0 commit comments