00001
00002
00003
00004
00005
00006
00007
00008
00009
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 }
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 {
00052 #endif
00053 }
00054 #endif
00055
00056 #endif
00057