aboutsummaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-16 07:46:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-16 07:46:24 +0000
commit1e5de389da4c5043b8aed81138c4980fad7393e3 (patch)
treeec9bc4c285484063cbca3c05d7f3a1cc0df1141d /debug.c
parent2b206be6acca2b0e5c2894860f578e087a4e3c5b (diff)
downloadruby-1e5de389da4c5043b8aed81138c4980fad7393e3.tar.gz
* debug.c (set_debug_option): added rtc_error option.
* win32/Makefile.sub (CRTDEFFLAGS): separated from DEFS. * win32/win32.c (rtc_error_handler): ignores RTC errors unless rtc_error debug option is given. * win32/win32.c (rb_w32_sysinit): suppress useless CRT assertions. [ruby-core:22116] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/debug.c b/debug.c
index 265e864aec..bcf2817fe1 100644
--- a/debug.c
+++ b/debug.c
@@ -148,6 +148,9 @@ set_debug_option(const char *str, int len, void *arg)
} while (0)
SET_WHEN("gc_stress", *ruby_initial_gc_stress_ptr);
SET_WHEN("core", ruby_enable_coredump);
+#if defined _WIN32 && defined _MSC_VER && _MSC_VER >= 1400
+ SET_WHEN("rtc_error", ruby_w32_rtc_error);
+#endif
fprintf(stderr, "unexpected debug option: %.*s\n", len, str);
}