Ruby
1.9.3p392(2013-02-22revision39386)
Main Page
Modules
Data Structures
Files
File List
Globals
include
ruby
backward
rubysig.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
rubysig.h -
4
5
$Author: usa $
6
$Date: 2012-12-11 17:52:48 +0900 (Tue, 11 Dec 2012) $
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
30
#if defined __GNUC__ && __GNUC__ >= 4
31
#pragma GCC visibility push(default)
32
#endif
33
34
struct
rb_blocking_region_buffer
;
35
DEPRECATED
(
RUBY_EXTERN
struct
rb_blocking_region_buffer
*
rb_thread_blocking_region_begin
(
void
));
36
DEPRECATED
(
RUBY_EXTERN
void
rb_thread_blocking_region_end
(
struct
rb_blocking_region_buffer
*));
37
#define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin();
38
#define TRAP_END rb_thread_blocking_region_end(__region);} while (0)
39
#define RUBY_CRITICAL(statements) do {statements;} while (0)
40
#define DEFER_INTS (0)
41
#define ENABLE_INTS (1)
42
#define ALLOW_INTS do {CHECK_INTS;} while (0)
43
#define CHECK_INTS rb_thread_check_ints()
44
45
#if defined __GNUC__ && __GNUC__ >= 4
46
#pragma GCC visibility pop
47
#endif
48
49
#if defined(__cplusplus)
50
#if 0
51
{
/* satisfy cc-mode */
52
#endif
53
}
/* extern "C" { */
54
#endif
55
56
#endif
57
Generated on Tue Feb 26 2013 08:43:02 for Ruby by
1.8.3