[ruby/irb] Change debug test workaround only enabled when output is
[ruby.git] / inits.c
blob677a384f9a37c55c5dbe189f5cef554f162ce639
1 /**********************************************************************
3 inits.c -
5 $Author$
6 created at: Tue Dec 28 16:01:58 JST 1993
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
10 **********************************************************************/
12 #include "internal/inits.h"
13 #include "ruby.h"
14 #include "builtin.h"
15 static void Init_builtin_prelude(void);
16 #include "prelude.rbinc"
18 #define CALL(n) {void Init_##n(void); Init_##n();}
20 void
21 rb_call_inits(void)
23 CALL(default_shapes);
24 CALL(Thread_Mutex);
25 CALL(RandomSeedCore);
26 CALL(encodings);
27 CALL(sym);
28 CALL(var_tables);
29 CALL(Object);
30 CALL(top_self);
31 CALL(Encoding);
32 CALL(Comparable);
33 CALL(Enumerable);
34 CALL(String);
35 CALL(Exception);
36 CALL(eval);
37 CALL(jump);
38 CALL(Numeric);
39 CALL(Bignum);
40 CALL(syserr);
41 CALL(Array);
42 CALL(Hash);
43 CALL(Struct);
44 CALL(Regexp);
45 CALL(pack);
46 CALL(transcode);
47 CALL(marshal);
48 CALL(Range);
49 CALL(IO);
50 CALL(IO_Buffer)
51 CALL(Dir);
52 CALL(Time);
53 CALL(Random);
54 CALL(load);
55 CALL(Proc);
56 CALL(Binding);
57 CALL(Math);
58 CALL(GC);
59 CALL(WeakMap);
60 CALL(Enumerator);
61 CALL(Ractor);
62 CALL(VM);
63 CALL(ISeq);
64 CALL(Thread);
65 CALL(signal);
66 CALL(Fiber_Scheduler);
67 CALL(process);
68 CALL(Cont);
69 CALL(Rational);
70 CALL(Complex);
71 CALL(MemoryView);
72 CALL(version);
73 CALL(vm_trace);
74 CALL(vm_stack_canary);
75 CALL(ast);
76 CALL(shape);
77 CALL(Prism);
79 // enable builtin loading
80 CALL(builtin);
83 void
84 rb_call_builtin_inits(void)
86 #define BUILTIN(n) CALL(builtin_##n)
87 BUILTIN(gc);
88 BUILTIN(ractor);
89 BUILTIN(numeric);
90 BUILTIN(io);
91 BUILTIN(dir);
92 BUILTIN(ast);
93 BUILTIN(trace_point);
94 BUILTIN(pack);
95 BUILTIN(warning);
96 BUILTIN(array);
97 BUILTIN(kernel);
98 BUILTIN(symbol);
99 BUILTIN(timev);
100 BUILTIN(thread_sync);
101 BUILTIN(yjit);
102 BUILTIN(nilclass);
103 BUILTIN(marshal);
104 #if USE_RJIT
105 BUILTIN(rjit_c);
106 BUILTIN(rjit);
107 #endif
108 Init_builtin_prelude();
110 #undef CALL