summaryrefslogtreecommitdiff
path: root/rubysig.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-27 09:11:13 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-09-27 09:11:13 +0000
commit6f36fedaa4788cfa956764d5b7e63fc67b444400 (patch)
treed8f62d18399c511f1626f841e8dbb95466f7558c /rubysig.h
parent25aa3816b173efa6889f2832c34da13021f656eb (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubysig.h')
-rw-r--r--rubysig.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rubysig.h b/rubysig.h
index dec1fa1..a837c01 100644
--- a/rubysig.h
+++ b/rubysig.h
@@ -14,8 +14,13 @@
#define SIG_H
EXTERN int rb_trap_immediate;
+#ifdef NT
+#define TRAP_BEG (rb_trap_immediate=1, SetEvent(rb_InterruptEvent))
+#define TRAP_END (rb_trap_immediate=0, ResetEvent(rb_InterruptEvent))
+#else
#define TRAP_BEG (rb_trap_immediate=1)
#define TRAP_END (rb_trap_immediate=0)
+#endif
EXTERN int rb_prohibit_interrupt;
#define DEFER_INTS {rb_prohibit_interrupt++;}