diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 22:30:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-08 22:30:20 +0000 |
commit | b3c7867df7cd186e73021f0ed9d17680999f190f (patch) | |
tree | 54774b8ee973eaf2ce53de151f007bd77f13efd3 /include/ruby | |
parent | b188d19ee080e954b9a86c746d0c0ee4068266c1 (diff) | |
download | ruby-b3c7867df7cd186e73021f0ed9d17680999f190f.tar.gz |
* error.c (rb_syserr_new): new function to make SystemCallError
instance without errno. [EXPERIMENTAL]
* error.c (rb_syserr_fail, rb_mod_syserr_fail): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/ruby.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 4a3e0ffc71..3dc61e2738 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -1152,6 +1152,9 @@ NORETURN(void rb_mod_sys_fail(VALUE, const char*)); NORETURN(void rb_iter_break(void)); NORETURN(void rb_exit(int)); NORETURN(void rb_notimplement(void)); +VALUE rb_syserr_new(int, const char *); +NORETURN(void rb_syserr_fail(int, const char*)); +NORETURN(void rb_mod_syserr_fail(VALUE, int, const char*)); /* reports if `-W' specified */ PRINTF_ARGS(void rb_warning(const char*, ...), 1, 2); |