Ruby 3.4.5p51 (2025-07-16 revision 20cda200d3ce092571d0b5d342dadca69636cb0f)
|
Process-global APIs. More...
#include "ruby/internal/attr/nonnull.h"
#include "ruby/internal/dllexport.h"
#include "ruby/internal/value.h"
Go to the source code of this file.
Macros | |
#define | rb_argv rb_get_argv() |
Just another name of rb_get_argv. |
Functions | |
VALUE | rb_get_argv (void) |
Queries the arguments passed to the current process that you can access from Ruby as ARGV. | |
void * | rb_load_file (const char *file) |
Loads the given file. | |
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. |
Variables | |
VALUE | rb_argv0 |
The value of $0 at process bootup. |
Process-global APIs.
Definition in file ruby.h.
#define rb_argv rb_get_argv() |
Just another name of rb_get_argv.
Definition at line 31 of file ruby.h.
Referenced by ruby_prog_init(), and ruby_set_argv().
VALUE rb_get_argv | ( | void | ) |
void * rb_load_file | ( | const char * | file | ) |
Loads the given file.
This function opens the given pathname for reading, parses the contents as a Ruby script, and returns an opaque "node" pointer. You can then pass it to ruby_run_node() for evaluation.
[in] | file | File name, or "-" to read from stdin. |
Definition at line 2920 of file ruby.c.
Referenced by rb_load_file().
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.
[in] | file | File name, or "-" to read from stdin. |
Definition at line 2927 of file ruby.c.
Referenced by rb_load_file(), and rb_load_file_str().
|
extern |
The value of $0 at process bootup.
Definition at line 1848 of file ruby.c.
Referenced by ruby_process_options().