aboutsummaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-12 10:48:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-05-12 18:36:01 +0900
commite3385f87831f036eaba96558cb4d83c8d5c43901 (patch)
tree6819306188b619e2a91dfe84686423558d1276cf /error.c
parenta1b01e7701f9fc370f8dff777aad6d39a2c5a3e3 (diff)
downloadruby-e3385f87831f036eaba96558cb4d83c8d5c43901.tar.gz
[Bug #19635] Preserve `errno`
The following functions are turned into macros and no longer can be used as expressions in core. - rb_sys_fail - rb_sys_fail_str - rb_sys_fail_path
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/error.c b/error.c
index 3d44b6671b..cb954dbf9e 100644
--- a/error.c
+++ b/error.c
@@ -3312,12 +3312,14 @@ rb_syserr_fail_str(int e, VALUE mesg)
rb_exc_raise(rb_syserr_new_str(e, mesg));
}
+#undef rb_sys_fail
void
rb_sys_fail(const char *mesg)
{
rb_exc_raise(make_errno_exc(mesg));
}
+#undef rb_sys_fail_str
void
rb_sys_fail_str(VALUE mesg)
{