2008-09-25 20:47:18 -04:00
|
|
|
/**********************************************************************
|
|
|
|
|
|
|
|
rubysig.h -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
$Date$
|
|
|
|
created at: Wed Aug 16 01:15:38 JST 1995
|
|
|
|
|
|
|
|
Copyright (C) 1993-2008 Yukihiro Matsumoto
|
|
|
|
|
|
|
|
**********************************************************************/
|
|
|
|
|
|
|
|
#if defined __GNUC__
|
|
|
|
#warning rubysig.h is obsolete
|
2015-10-17 22:10:34 -04:00
|
|
|
#elif defined _MSC_VER
|
2008-09-25 20:47:18 -04:00
|
|
|
#pragma message("warning: rubysig.h is obsolete")
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef RUBYSIG_H
|
|
|
|
#define RUBYSIG_H
|
|
|
|
#include "ruby/ruby.h"
|
|
|
|
|
2009-02-08 05:05:26 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_BEGIN
|
2012-06-19 05:43:53 -04:00
|
|
|
|
2008-09-25 20:47:18 -04:00
|
|
|
#define RUBY_CRITICAL(statements) do {statements;} while (0)
|
|
|
|
#define DEFER_INTS (0)
|
|
|
|
#define ENABLE_INTS (1)
|
|
|
|
#define ALLOW_INTS do {CHECK_INTS;} while (0)
|
|
|
|
#define CHECK_INTS rb_thread_check_ints()
|
2009-02-08 05:05:26 -05:00
|
|
|
|
2013-04-05 06:29:38 -04:00
|
|
|
RUBY_SYMBOL_EXPORT_END
|
2012-06-19 05:43:53 -04:00
|
|
|
|
2009-02-08 05:05:26 -05:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
2008-09-25 20:47:18 -04:00
|
|
|
#endif
|