diff options
author | Nobuyoshi Nakada <[email protected]> | 2022-09-30 17:26:46 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2022-09-30 17:29:23 +0900 |
commit | e294e6f417acc27d85c6e6a0e67ebf7a07c83485 (patch) | |
tree | 600e9337007c91713ca5be827fdf08ef58a18eef /error.c | |
parent | 962f9932afd3e545bccc24f7bbc8e9eb85d9ae41 (diff) |
Split `with_warning_string_from` for the last named parameter
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |