Ruby: include/ruby/internal/intern/load.h Source File

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

load.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_LOAD_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_LOAD_H
23#include "ruby/internal/dllexport.h"
24#include "ruby/internal/value.h"
25
26 RBIMPL_SYMBOL_EXPORT_BEGIN()
27
28/* load.c */
29void rb_load(VALUE, int);
30void rb_load_protect(VALUE, int, int*);
31int rb_provided(const char*);
32int rb_feature_provided(const char *, const char **);
33void rb_provide(const char*);
34 VALUE rb_f_require(VALUE, VALUE);
35 VALUE rb_require_string(VALUE);
36
37// extension configuration
38void rb_ext_ractor_safe(bool flag);
39#define RB_EXT_RACTOR_SAFE(f) rb_ext_ractor_safe(f)
40#define HAVE_RB_EXT_RACTOR_SAFE 1
41
42 RBIMPL_SYMBOL_EXPORT_END()
43
44#endif /* RBIMPL_INTERN_LOAD_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_load
void rb_load(VALUE, int)
Definition: load.c:702
rb_provide
void rb_provide(const char *)
Definition: load.c:616
rb_require_string
VALUE rb_require_string(VALUE)
Definition: load.c:1183
rb_feature_provided
int rb_feature_provided(const char *, const char **)
Definition: load.c:571
rb_ext_ractor_safe
void rb_ext_ractor_safe(bool flag)
Definition: load.c:1058
rb_load_protect
void rb_load_protect(VALUE, int, int *)
Definition: load.c:710
rb_provided
int rb_provided(const char *)
Definition: load.c:565
rb_f_require
VALUE rb_f_require(VALUE, VALUE)
Definition: load.c:880
const
#define const
Definition: strftime.c:108
value.h
Defines VALUE and ID.
VALUE
unsigned long VALUE
Definition: value.h:38