1 /**********************************************************************
6 created at: Fri Aug 19 13:19:58 JST 1994
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
10 **********************************************************************/
13 * \mainpage Developers' documentation for Ruby
15 * This documentation is produced by applying Doxygen to
16 * <a href="https://github.com/ruby/ruby">Ruby's source code</a>.
17 * It is still under construction (and even not well-maintained).
18 * If you are familiar with Ruby's source code, please improve the doc.
23 #include "internal/sanitizers.h"
28 #if defined RUBY_DEVEL && !defined RUBY_DEBUG_ENV
29 # define RUBY_DEBUG_ENV 1
31 #if defined RUBY_DEBUG_ENV && !RUBY_DEBUG_ENV
32 # undef RUBY_DEBUG_ENV
38 rb_main(int argc
, char **argv
)
42 return ruby_run_node(ruby_options(argc
, argv
));
46 #define main(argc, argv) w32_main(argc, argv)
47 static int main(int argc
, char **argv
);
48 int wmain(void) {return main(0, NULL
);}
52 main(int argc
, char **argv
)
54 #if defined(RUBY_DEBUG_ENV) || USE_RUBY_DEBUG_LOG
55 ruby_set_debug_option(getenv("RUBY_DEBUG"));
58 setlocale(LC_CTYPE
, "");
61 ruby_sysinit(&argc
, &argv
);
62 return ruby_start_main(rb_main
, argc
, argv
);