summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-07 16:40:49 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-06-30 10:47:01 +0900
commit94bd3bde8181b9abbd0b55f1382268dc78be2c37 (patch)
treeef79ca38f0d717f5869c5930dbfa74d646bb8c8f /internal
parent21600a5f643d7edb3ce76e0257b92848ee86568e (diff)
downloadruby-94bd3bde8181b9abbd0b55f1382268dc78be2c37.tar.gz
Specify version to remove as bare numbers
Diffstat (limited to 'internal')
-rw-r--r--internal/error.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/error.h b/internal/error.h
index 6fbe31bb53..360203aefc 100644
--- a/internal/error.h
+++ b/internal/error.h
@@ -88,11 +88,11 @@ void rb_deprecated_method_to_be_removed(const char *);
RBIMPL_ASSERT_NOTHING)
# endif
# define rb_warn_deprecated_to_remove_at(removal, ...) \
- (rb_deprecated_method_to_be_removed(removal), \
- rb_warn_deprecated_to_remove(removal, __VA_ARGS__))
+ (rb_deprecated_method_to_be_removed(#removal), \
+ rb_warn_deprecated_to_remove(#removal, __VA_ARGS__))
#else
# define rb_warn_deprecated_to_remove_at(removal, ...) \
- rb_warn_deprecated_to_remove(removal, __VA_ARGS__)
+ rb_warn_deprecated_to_remove(#removal, __VA_ARGS__)
#endif
VALUE rb_syntax_error_append(VALUE, VALUE, int, int, rb_encoding*, const char*, va_list);
PRINTF_ARGS(void rb_enc_warn(rb_encoding *enc, const char *fmt, ...), 2, 3);