diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-10 07:30:18 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-01-10 07:30:18 +0000 |
commit | 6b5ad7c5b203b7ffa8b86b1d0b9b15df56a90a27 (patch) | |
tree | 3418e391f39f859a553db6c1d92cc3e525efe32e /ruby.h | |
parent | ab9be24857d58a8300ccfb2bfbb093bcfe9807ab (diff) |
setres[ug]id, NORETURN
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -64,9 +64,9 @@ extern "C" { #endif #ifdef HAVE_ATTR_NORETURN -# define NORETURN __attribute__ ((noreturn)) -#else -# define NORETURN +# define NORETURN(x) x __attribute__ ((noreturn)) +#elif !defined NORETURN +# define NORETURN(x) x #endif #if defined(HAVE_ALLOCA_H) && !defined(__GNUC__) @@ -453,13 +453,13 @@ VALUE rb_equal _((VALUE,VALUE)); EXTERN VALUE ruby_verbose, ruby_debug; -void rb_raise __((VALUE, const char*, ...)) NORETURN; -void rb_fatal __((const char*, ...)) NORETURN; -void rb_bug __((const char*, ...)) NORETURN; -void rb_sys_fail _((const char*)) NORETURN; -void rb_iter_break _((void)) NORETURN; -void rb_exit _((int)) NORETURN; -void rb_notimplement _((void)) NORETURN; +NORETURN(void rb_raise __((VALUE, const char*, ...))); +NORETURN(void rb_fatal __((const char*, ...))); +NORETURN(void rb_bug __((const char*, ...))); +NORETURN(void rb_sys_fail _((const char*))); +NORETURN(void rb_iter_break _((void))); +NORETURN(void rb_exit _((int))); +NORETURN(void rb_notimplement _((void))); void rb_warn __((const char*, ...)); void rb_warning __((const char*, ...)); /* reports if `-w' specified */ @@ -472,7 +472,7 @@ VALUE rb_rescue _((VALUE(*)(),VALUE,VALUE(*)(),VALUE)); VALUE rb_rescue2 __((VALUE(*)(),VALUE,VALUE(*)(),VALUE,...)); VALUE rb_ensure _((VALUE(*)(),VALUE,VALUE(*)(),VALUE)); VALUE rb_catch _((const char*,VALUE(*)(),VALUE)); -void rb_throw _((const char*,VALUE)) NORETURN; +NORETURN(void rb_throw _((const char*,VALUE))); VALUE rb_require _((const char*)); |