summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoshi Tagomori <s-tagomori@sakura.ad.jp>2025-10-31 20:07:28 +0900
committerSatoshi Tagomori <tagomoris@gmail.com>2025-10-31 22:42:07 +0900
commit65168b7eafd30fd3958d71761fa155bba00cdec5 (patch)
tree0d5c5c136cc62eaf3e9b3d03450b32e2a83c4a82
parent961683bcb10ad7e470c7956104f34ef9220b6de4 (diff)
Specify RUBY_DEBUG flag in the right way
-rw-r--r--namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namespace.c b/namespace.c
index 4e5a4e9bc4..847aff9f87 100644
--- a/namespace.c
+++ b/namespace.c
@@ -1084,7 +1084,7 @@ Init_Namespace(void)
if (rb_namespace_available()) {
rb_include_module(rb_cObject, rb_mNamespaceLoader);
-#ifdef RUBY_DEBUG
+#if RUBY_DEBUG > 0
rb_define_singleton_method(rb_cNamespace, "root", rb_namespace_s_root, 0);
rb_define_singleton_method(rb_cNamespace, "main", rb_namespace_s_main, 0);
rb_define_global_function("dump_classext", rb_f_dump_classext, 1);