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 RUBY_SYMBOL_EXPORT_BEGIN
00031
00032 struct rb_blocking_region_buffer;
00033 DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void));
00034 DEPRECATED(RUBY_EXTERN void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *));
00035 #define TRAP_BEG do {struct rb_blocking_region_buffer *__region = rb_thread_blocking_region_begin();
00036 #define TRAP_END rb_thread_blocking_region_end(__region);} while (0)
00037 #define RUBY_CRITICAL(statements) do {statements;} while (0)
00038 #define DEFER_INTS (0)
00039 #define ENABLE_INTS (1)
00040 #define ALLOW_INTS do {CHECK_INTS;} while (0)
00041 #define CHECK_INTS rb_thread_check_ints()
00042
00043 RUBY_SYMBOL_EXPORT_END
00044
00045 #if defined(__cplusplus)
00046 #if 0
00047 {
00048 #endif
00049 }
00050 #endif
00051
00052 #endif
00053