23#include "internal/sanitizers.h"
28#include "internal/gc.h"
31#if defined RUBY_DEVEL && !defined RUBY_DEBUG_ENV
32# define RUBY_DEBUG_ENV 1
34#if defined RUBY_DEBUG_ENV && !RUBY_DEBUG_ENV
39rb_main(
int argc,
char **argv)
43 return ruby_run_node(ruby_options(argc, argv));
46#if defined(__wasm__) && !defined(__EMSCRIPTEN__)
47int rb_wasm_rt_start(
int (main)(
int argc,
char **argv),
int argc,
char **argv);
48#define rb_main(argc, argv) rb_wasm_rt_start(rb_main, argc, argv)
52#define main(argc, argv) w32_main(argc, argv)
53static int main(
int argc,
char **argv);
54int wmain(
void) {
return main(0, NULL);}
58main(
int argc,
char **argv)
60#if defined(RUBY_DEBUG_ENV) || USE_RUBY_DEBUG_LOG
61 ruby_set_debug_option(getenv(
"RUBY_DEBUG"));
64 setlocale(LC_CTYPE,
"");
68 return rb_main(argc, argv);
71#ifdef RUBY_ASAN_ENABLED
75RUBY_SYMBOL_EXPORT_BEGIN
77__asan_default_options(
void)
79 return "use_sigaltstack=0:detect_leaks=0";
#define RUBY_INIT_STACK
A convenience macro to call ruby_init_stack().
void ruby_init(void)
Calls ruby_setup() and check error.
void ruby_sysinit(int *argc, char ***argv)
Initializes the process for libruby.