14 #warning rubysig.h is obsolete 15 #elif defined _MSC_VER || defined __BORLANDC__ 16 #pragma message("warning: rubysig.h is obsolete") 23 #if defined(__cplusplus) 30 #if defined __GNUC__ && __GNUC__ >= 4 31 #pragma GCC visibility push(default) 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() 45 #if defined __GNUC__ && __GNUC__ >= 4 46 #pragma GCC visibility pop 49 #if defined(__cplusplus) struct rb_blocking_region_buffer * rb_thread_blocking_region_begin(void)
void rb_thread_blocking_region_end(struct rb_blocking_region_buffer *region)
DEPRECATED(RUBY_EXTERN struct rb_blocking_region_buffer *rb_thread_blocking_region_begin(void))