Ruby  2.0.0p247(2013-06-27revision41674)
include/ruby/backward/rubysig.h
Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   rubysig.h -
00004 
00005   $Author: nobu $
00006   $Date: 2012-06-19 18:43:53 +0900 (Tue, 19 Jun 2012) $
00007   created at: Wed Aug 16 01:15:38 JST 1995
00008 
00009   Copyright (C) 1993-2008 Yukihiro Matsumoto
00010 
00011 **********************************************************************/
00012 
00013 #if   defined __GNUC__
00014 #warning rubysig.h is obsolete
00015 #elif defined _MSC_VER || defined __BORLANDC__
00016 #pragma message("warning: rubysig.h is obsolete")
00017 #endif
00018 
00019 #ifndef RUBYSIG_H
00020 #define RUBYSIG_H
00021 #include "ruby/ruby.h"
00022 
00023 #if defined(__cplusplus)
00024 extern "C" {
00025 #if 0
00026 } /* satisfy cc-mode */
00027 #endif
00028 #endif
00029 
00030 #if defined __GNUC__ && __GNUC__ >= 4
00031 #pragma GCC visibility push(default)
00032 #endif
00033 
00034 struct rb_blocking_region_buffer;
00035 DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void));
00036 DEPRECATED(RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *));
00037 #define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin();
00038 #define TRAP_END rb_thread_blocking_region_end(__region);} while (0)
00039 #define RUBY_CRITICAL(statements) do {statements;} while (0)
00040 #define DEFER_INTS (0)
00041 #define ENABLE_INTS (1)
00042 #define ALLOW_INTS do {CHECK_INTS;} while (0)
00043 #define CHECK_INTS rb_thread_check_ints()
00044 
00045 #if defined __GNUC__ && __GNUC__ >= 4
00046 #pragma GCC visibility pop
00047 #endif
00048 
00049 #if defined(__cplusplus)
00050 #if 0
00051 { /* satisfy cc-mode */
00052 #endif
00053 }  /* extern "C" { */
00054 #endif
00055 
00056 #endif
00057