summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/ext/io_spec.c
diff options
context:
space:
mode:
authorAndrew Konchin <[email protected]>2024-12-09 20:32:39 +0200
committerBenoit Daloze <[email protected]>2024-12-10 14:38:52 +0100
commitde5df203bcfb228b7043ae0116535953c325ddb4 ()
treea3b8b89d3010cc554fdb1df2720e81be41357787 /spec/ruby/optional/capi/ext/io_spec.c
parenta90d8c335a6f5f2ae0c9480c9a546089f52e9028 (diff)
Update to ruby/spec@9f10222
Notes: Merged: https://.com/ruby/ruby/pull/12297
-rw-r--r--spec/ruby/optional/capi/ext/io_spec.c29
1 files changed, 29 insertions, 0 deletions
@@ -371,6 +371,27 @@ static VALUE io_spec_rb_io_mode(VALUE self, VALUE io) {
static VALUE io_spec_rb_io_path(VALUE self, VALUE io) {
return rb_io_path(io);
}
#endif
void Init_io_spec(void) {
@@ -409,6 +430,14 @@ void Init_io_spec(void) {
#if defined(RUBY_VERSION_IS_3_3) || defined(TRUFFLERUBY)
rb_define_method(cls, "rb_io_mode", io_spec_rb_io_mode, 1);
rb_define_method(cls, "rb_io_path", io_spec_rb_io_path, 1);
#endif
}