Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
rfile.h
Go to the documentation of this file.
1#ifndef RBIMPL_RFILE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_RFILE_H
24#include "ruby/internal/cast.h"
25
26/* rb_io_t is in ruby/io.h. The header file has historically not been included
27 * into ruby/ruby.h. We follow that tradition. */
28struct rb_io_t;
29
30struct RFile {
31 struct RBasic basic;
32 struct rb_io_t *fptr;
33};
34
35#define RFILE(obj) RBIMPL_CAST((struct RFile *)(obj))
36#endif /* RBIMPL_RFILE_H */
Defines RBIMPL_CAST.
Defines struct RBasic.
Definition: rbasic.h:47
Definition: rfile.h:30
struct RBasic basic
Definition: rfile.h:31
struct rb_io_t * fptr
Definition: rfile.h:32
Definition: io.h:61