Ruby  2.1.10p492(2016-04-01revision54464)
rubysig.h
Go to the documentation of this file.
1 /**********************************************************************
2 
3  rubysig.h -
4 
5  $Author: nobu $
6  $Date: 2013-04-05 19:29:38 +0900 (Fri, 05 Apr 2013) $
7  created at: Wed Aug 16 01:15:38 JST 1995
8 
9  Copyright (C) 1993-2008 Yukihiro Matsumoto
10 
11 **********************************************************************/
12 
13 #if defined __GNUC__
14 #warning rubysig.h is obsolete
15 #elif defined _MSC_VER || defined __BORLANDC__
16 #pragma message("warning: rubysig.h is obsolete")
17 #endif
18 
19 #ifndef RUBYSIG_H
20 #define RUBYSIG_H
21 #include "ruby/ruby.h"
22 
23 #if defined(__cplusplus)
24 extern "C" {
25 #if 0
26 } /* satisfy cc-mode */
27 #endif
28 #endif
29 
31 
35 #define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin();
36 #define TRAP_END rb_thread_blocking_region_end(__region);} while (0)
37 #define RUBY_CRITICAL(statements) do {statements;} while (0)
38 #define DEFER_INTS (0)
39 #define ENABLE_INTS (1)
40 #define ALLOW_INTS do {CHECK_INTS;} while (0)
41 #define CHECK_INTS rb_thread_check_ints()
42 
44 
45 #if defined(__cplusplus)
46 #if 0
47 { /* satisfy cc-mode */
48 #endif
49 } /* extern "C" { */
50 #endif
51 
52 #endif
#define DEPRECATED(x)
Definition: ruby.h:36
struct rb_blocking_region_buffer * rb_thread_blocking_region_begin(void)
Definition: thread.c:1236
void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
Definition: thread.c:1245
#define RUBY_EXTERN
Definition: missing.h:67
#define RUBY_SYMBOL_EXPORT_END
Definition: missing.h:39
#define RUBY_SYMBOL_EXPORT_BEGIN
Definition: missing.h:38