aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 11:19:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 11:19:56 +0000
commitc7c3a275f33ca1f2485a0a496fac8b076f38beed (patch)
tree5239f55ac4e7d21d09e75ee7c403a15c793903e3 /internal.h
parentb5a9cd8fb82c33d03e8487d24825690de1697cc0 (diff)
downloadruby-c7c3a275f33ca1f2485a0a496fac8b076f38beed.tar.gz
error.c: rb_sys_fail_path_in
* error.c (syserr_initialize): add optional function name. * error.c (rb_sys_fail_path_in): rename and move from file.c, and pass func_name to SystemCallError#initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.h b/internal.h
index 56c096a009..b099f24352 100644
--- a/internal.h
+++ b/internal.h
@@ -126,11 +126,11 @@ void Init_File(void);
# if defined __GNUC__ && __GNUC__ >= 4
# pragma GCC visibility push(default)
# endif
-NORETURN(void rb_sys_fail_path_with_func(const char *func_name, VALUE path));
+NORETURN(void rb_sys_fail_path_in(const char *func_name, VALUE path));
# if defined __GNUC__ && __GNUC__ >= 4
# pragma GCC visibility pop
# endif
-# define rb_sys_fail_path(path) rb_sys_fail_path_with_func(RUBY_FUNCTION_NAME_STRING, path)
+# define rb_sys_fail_path(path) rb_sys_fail_path_in(RUBY_FUNCTION_NAME_STRING, path)
#else
# define rb_sys_fail_path(path) rb_sys_fail_str(path)
#endif