summaryrefslogtreecommitdiff
path: root/ext/-test-/fatal/rb_fatal.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/-test-/fatal/rb_fatal.c')
-rw-r--r--ext/-test-/fatal/rb_fatal.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/-test-/fatal/rb_fatal.c b/ext/-test-/fatal/rb_fatal.c
index 71aef46..eedbc51 100644
--- a/ext/-test-/fatal/rb_fatal.c
+++ b/ext/-test-/fatal/rb_fatal.c
@@ -15,5 +15,6 @@ ruby_fatal(VALUE obj, VALUE msg)
void
Init_rb_fatal(void)
{
- rb_define_method(rb_mKernel, "rb_fatal", ruby_fatal, 1);
+ VALUE mBug = rb_define_module("Bug");
+ rb_define_singleton_method(mBug, "rb_fatal", ruby_fatal, 1);
}