summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-01-05 21:31:45 +0900
committerYuichiro Kaneko <[email protected]>2024-01-06 09:32:45 +0900
commit0c990994c7c61cab57c3fbbcf2d1ccb213dc8cdd (patch)
tree1731be9a567b13e66f9209133321bfcdd69e8934 /debug.c
parentda23f8fe1ac4ebf5d733b50241ddc1f0556ab40f (diff)
Add a shorthand for ruby_debug_print_node
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 4f2523ab89..605a399b65 100644
--- a/debug.c
+++ b/debug.c
@@ -156,6 +156,12 @@ ruby_debug_print_node(int level, int debug_level, const char *header, const NODE
}
void
+ruby_debug_print_n(const NODE *node)
+{
+ ruby_debug_print_node(0, 1, "", node);
+}
+
+void
ruby_debug_breakpoint(void)
{
/* */