зеркало из https://github.com/github/ruby.git
internal.h: export rb_sys_fail_path_with_func
* internal.h (rb_sys_fail_path_with_func): export for socket/basicsocket.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0d3d9eff4d
Коммит
a7e5f0b5ee
|
@ -247,8 +247,6 @@ bsock_setsockopt(int argc, VALUE *argv, VALUE sock)
|
|||
break;
|
||||
}
|
||||
|
||||
#define rb_sys_fail_path(path) rb_sys_fail_str(path)
|
||||
|
||||
rb_io_check_closed(fptr);
|
||||
if (setsockopt(fptr->fd, level, option, v, vlen) < 0)
|
||||
rb_sys_fail_path(fptr->pathv);
|
||||
|
|
|
@ -123,7 +123,13 @@ VALUE rb_get_path_check_convert(VALUE, VALUE, int);
|
|||
void Init_File(void);
|
||||
|
||||
#ifdef RUBY_FUNCTION_NAME_STRING
|
||||
# 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));
|
||||
# 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)
|
||||
#else
|
||||
# define rb_sys_fail_path(path) rb_sys_fail_str(path)
|
||||
|
|
Загрузка…
Ссылка в новой задаче