Ruby 3.5.0dev (2025-02-20 revision 34098b669c0cbc024cd08e686891f1dfe0a10aaf)
ruby.h
Go to the documentation of this file.
1#ifndef RBIMPL_INTERN_RUBY_H /*-*-C++-*-vi:se ft=cpp:*/
2#define RBIMPL_INTERN_RUBY_H
25#include "ruby/internal/value.h"
26
28
29/* ruby.c */
31#define rb_argv rb_get_argv()
32
42
43/* io.c */
44
51VALUE rb_get_argv(void);
52
53/* ruby.c */
54
64void *rb_load_file(const char *file);
65
73void *rb_load_file_str(VALUE file);
74
76
77#endif /* RBIMPL_INTERN_RUBY_H */
Tweaking visibility of C variables/functions.
#define RUBY_EXTERN
Declaration of externally visible global variables.
Definition dllexport.h:45
#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
Defines RBIMPL_ATTR_NONNULL.
#define RBIMPL_ATTR_NONNULL(list)
Wraps (or simulates) __attribute__((nonnull))
Definition nonnull.h:30
VALUE rb_argv0
The value of $0 at process bootup.
Definition ruby.c:1818
VALUE rb_get_argv(void)
Queries the arguments passed to the current process that you can access from Ruby as ARGV.
Definition io.c:14622
void * rb_load_file_str(VALUE file)
Identical to rb_load_file(), except it takes the argument as a Ruby's string instead of C's.
Definition ruby.c:2892
void * rb_load_file(const char *file)
Loads the given file.
Definition ruby.c:2885
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition value.h:40