Ruby: include/ruby/internal/module.h Source File

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

module.h
Go to the documentation of this file.
1#ifndef RBIMPL_MODULE_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_MODULE_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25
26 RBIMPL_SYMBOL_EXPORT_BEGIN()
27
28 VALUE rb_define_class(const char*,VALUE);
29 VALUE rb_define_module(const char*);
30 VALUE rb_define_class_under(VALUE, const char*, VALUE);
31 VALUE rb_define_module_under(VALUE, const char*);
32
33void rb_include_module(VALUE,VALUE);
34void rb_extend_object(VALUE,VALUE);
35void rb_prepend_module(VALUE,VALUE);
36
37 RBIMPL_SYMBOL_EXPORT_END()
38
39#endif /* RBIMPL_MODULE_H */
dllexport.h
Tewaking visibility of C variables/functions.
RBIMPL_SYMBOL_EXPORT_END
#define RBIMPL_SYMBOL_EXPORT_END()
Counterpart of RBIMPL_SYMBOL_EXPORT_BEGIN.
Definition: dllexport.h:86
RBIMPL_SYMBOL_EXPORT_BEGIN
#define RBIMPL_SYMBOL_EXPORT_BEGIN()
Shortcut macro equivalent to RUBY_SYMBOL_EXPORT_BEGIN extern "C" {.
Definition: dllexport.h:77
rb_include_module
void rb_include_module(VALUE, VALUE)
Definition: class.c:962
rb_extend_object
void rb_extend_object(VALUE, VALUE)
Extend the object with the module.
Definition: eval.c:1730
rb_define_class
VALUE rb_define_class(const char *, VALUE)
Defines a top-level class.
Definition: class.c:748
rb_prepend_module
void rb_prepend_module(VALUE, VALUE)
Definition: class.c:1170
rb_define_class_under
VALUE rb_define_class_under(VALUE, const char *, VALUE)
Defines a class under the namespace of outer.
Definition: class.c:797
rb_define_module
VALUE rb_define_module(const char *)
Definition: class.c:871
rb_define_module_under
VALUE rb_define_module_under(VALUE, const char *)
Definition: class.c:895
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38