diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2023-08-25 16:05:02 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2023-08-25 17:27:53 +0900 |
commit | a736420ce560117e6f9491323b61608beb10f2cf (patch) | |
tree | 2deecbe342dd7603e64efa6a1f1f18fad8907bb9 /rubyparser.h | |
parent | 26cb3b56178d39b2b66ae795238b5834830f8f66 (diff) |
define back snprintf
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/8274
Diffstat (limited to 'rubyparser.h')
-rw-r--r-- | rubyparser.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rubyparser.h b/rubyparser.h index 708184aa52..90c3939f12 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -606,6 +606,9 @@ typedef struct rb_parser_config_struct { int (*builtin_type)(VALUE); #undef snprintf int (*snprintf)(char *str, size_t n, char const *fmt, ...); +#ifdef RUBY_SUBST_H +# define snprintf(...) ruby_snprintf(__VA_ARGS__) +#endif VALUE (*node_case_when_optimizable_literal)(const NODE *const node); |