repo.or.cz
/
ruby.git
/
commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
raw
|
patch
|
inline
|
side by side
(parent:
962f993
)
Split `with_warning_string_from` for the last named parameter
author
Nobuyoshi Nakada
<
[email protected]
>
Fri, 30 Sep 2022 08:26:46 +0000
(30 17:26 +0900)
committer
Nobuyoshi Nakada
<
[email protected]
>
Fri, 30 Sep 2022 08:29:23 +0000
(30 17:29 +0900)
error.c
patch
|
blob
|
blame
|
history
diff --git
a/error.c
b/error.c
index
cfa086a
..
f448902
100644
(file)
--- a/
error.c
+++ b/
error.c
@@
-406,8
+406,10
@@
warning_string(rb_encoding *enc, const char *fmt, va_list args)
}
#define with_warning_string(mesg, enc, fmt) \
+ with_warning_string_from(mesg, enc, fmt, fmt)
+#define with_warning_string_from(mesg, enc, fmt, last_arg) \
VALUE mesg; \
- va_list args; va_start(args,
fmt
); \
+ va_list args; va_start(args,
last_arg
); \
mesg = warning_string(enc, fmt, args); \
va_end(args);