Skip to content

Commit 22667fc

Browse files
committed
Add RUBY_VERSION_IS_3_5.
1 parent bef59ed commit 22667fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spec/ruby/optional/capi/ext/rubyspec.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@
3535
(RUBY_API_VERSION_MAJOR == (major) && RUBY_API_VERSION_MINOR < (minor)))
3636
#define RUBY_VERSION_SINCE(major,minor) (!RUBY_VERSION_BEFORE(major, minor))
3737

38+
#if RUBY_VERSION_SINCE(3, 5)
39+
#define RUBY_VERSION_IS_3_5
40+
#endif
41+
3842
#if RUBY_VERSION_SINCE(3, 4)
3943
#define RUBY_VERSION_IS_3_4
4044
#endif

0 commit comments

Comments
 (0)