summaryrefslogtreecommitdiffstats
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
commit61d1cf72ca6f908833e44112a85a04198cb5133a (patch)
treeec9bc4c285484063cbca3c05d7f3a1cc0df1141d /debug.c
parentcb57fbba23facd6c3968b9b9284a6169d71e9dfd (diff)
downloadruby-61d1cf72ca6f908833e44112a85a04198cb5133a.tar.gz
ruby-61d1cf72ca6f908833e44112a85a04198cb5133a.tar.xz
ruby-61d1cf72ca6f908833e44112a85a04198cb5133a.zip
* 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: http://svn.ruby-lang.org/repos/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 265e864ae..bcf2817fe 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);
}