summaryrefslogtreecommitdiff
path: root/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/debug.c b/debug.c
index 3ec7da4..3699359 100644
--- a/debug.c
+++ b/debug.c
@@ -141,13 +141,13 @@ set_debug_option(const char *str, int len, void *arg)
#define SET_WHEN(name, var) do { \
if (len == sizeof(name) - 1 && \
strncmp(str, name, len) == 0) { \
- extern int ruby_##var; \
- ruby_##var = 1; \
+ extern int var; \
+ var = 1; \
return; \
} \
} while (0)
- SET_WHEN("gc_stress", gc_stress);
- SET_WHEN("core", enable_coredump);
+ SET_WHEN("gc_stress", *ruby_initial_gc_stress_ptr);
+ SET_WHEN("core", ruby_enable_coredump);
fprintf(stderr, "unexpected debug option: %.*s\n", len, str);
}