summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2021-12-28 17:58:39 +0900
committerKoichi Sasada <ko1@atdot.net>2021-12-29 00:22:02 +0900
commitc9af8a32a05b26d45c5c8967902b3a724f3c1be6 (patch)
tree1ddf2e3ae5dd1998c7eff2c317223bc06f6db01b /debug.c
parent763592d208883714f3d255eb5fb1bee649e9613b (diff)
`USE_RUBY_DEBUG_LOG` doesn't check `RUBY_DEVEL`
`USE_RUBY_DEBUG_LOG` was only defined when `RUBY_DEVEL` is defined. This patch removes this dependency (`USE_RUBY_DEBUG_LOG` is defined independently from `RUBY_DEVEL`). Do not commit a patch which enables `USE_RUBY_DEBUG_LOG`.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5366
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/debug.c b/debug.c
index a5e6ce475a..95a994e63c 100644
--- a/debug.c
+++ b/debug.c
@@ -248,11 +248,7 @@ set_debug_option(const char *str, int len, void *arg)
}
}
-#ifdef USE_RUBY_DEBUG_LOG
-STATIC_ASSERT(USE_RUBY_DEBUG_LOG, USE_RUBY_DEBUG_LOG ? RUBY_DEVEL : 1);
-#endif
-
-#if RUBY_DEVEL
+#if USE_RUBY_DEBUG_LOG
static void setup_debug_log(void);
#else
#define setup_debug_log()
@@ -265,7 +261,7 @@ ruby_set_debug_option(const char *str)
setup_debug_log();
}
-#if RUBY_DEVEL
+#if USE_RUBY_DEBUG_LOG
// RUBY_DEBUG_LOG features
// See vm_debug.h comments for details.
@@ -511,4 +507,4 @@ ruby_debug_log_dump(const char *fname, unsigned int n)
fclose(fp);
}
}
-#endif // #if RUBY_DEVEL
+#endif // #if USE_RUBY_DEBUG_LOG