Ruby  3.4.0dev (2024-11-22 revision 37a72b0150ec36b4ea27175039afc28c62207b0c)
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 
51 VALUE rb_get_argv(void);
52 
53 /* ruby.c */
54 
64 void *rb_load_file(const char *file);
65 
73 void *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:27
VALUE rb_argv0
The value of $0 at process bootup.
Definition: ruby.c:1848
VALUE rb_get_argv(void)
Queries the arguments passed to the current process that you can access from Ruby as ARGV.
Definition: io.c:14586
void * rb_load_file(const char *file)
Loads the given file.
Definition: ruby.c:2917
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:2924
Defines VALUE and ID.
uintptr_t VALUE
Type that represents a Ruby object.
Definition: value.h:40