Ruby  3.4.0dev (2024-11-05 revision 348a53415339076afc4a02fcd09f3ae36e9c4c61)
rclass.h
Go to the documentation of this file.
1 #ifndef RBIMPL_RCLASS_H /*-*-C++-*-vi:se ft=cpp:*/
2 #define RBIMPL_RCLASS_H
25 #include "ruby/internal/value.h"
26 #include "ruby/internal/cast.h"
27 
29 #define RMODULE_IS_REFINEMENT RMODULE_IS_REFINEMENT
38 #define RCLASS(obj) RBIMPL_CAST((struct RClass *)(obj))
39 
41 #define RMODULE RCLASS
42 
44 #define RCLASS_SUPER rb_class_get_superclass
45 
55 enum ruby_rmodule_flags {
61  RMODULE_IS_REFINEMENT = RUBY_FL_USER3
62 };
63 
64 struct RClass; /* Opaque, declared here for RCLASS() macro. */
65 
92 
93 #endif /* RBIMPL_RCLASS_H */
Tweaking visibility of C variables/functions.
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:74
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:65
@ RUBY_FL_USER3
User-defined flag.
Definition: fl_type.h:331
VALUE rb_class_get_superclass(VALUE klass)
Returns the superclass of a class.
Definition: object.c:2169
Definition: class.h:80
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40