summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSatoshi Tagomori <s-tagomori@sakura.ad.jp>2025-11-01 08:00:56 +0900
committerSatoshi Tagomori <tagomoris@gmail.com>2025-11-03 02:06:11 +0900
commit12303e2e2e9634dda5e2b5eec7ae7e2296c9f229 (patch)
tree0dbc6224bc23012f2a646dc20dc491fc1eecd084
parentbb62a1cf8dffdbaf2b97486e781600023ff1356c (diff)
Fix use of inappropriate debug flag
-rw-r--r--namespace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namespace.c b/namespace.c
index 0f0230b5fd..3498a4cc4a 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);
-#if RUBY_DEBUG > 0
+#if RUBY_DEBUG
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);