1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Added rb_warn_deprecated_to_remove

Warn the deprecation and future removal, with obeying the warning
flag.
This commit is contained in:
Nobuyoshi Nakada 2020-01-23 21:42:05 +09:00
parent 0ea759eac9
commit aefb13eb63
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
6 changed files with 29 additions and 14 deletions

View file

@ -52,6 +52,7 @@ NORETURN(void rb_async_bug_errno(const char *,int));
const char *rb_builtin_type_name(int t);
const char *rb_builtin_class_name(VALUE x);
PRINTF_ARGS(void rb_warn_deprecated(const char *fmt, const char *suggest, ...), 1, 3);
PRINTF_ARGS(void rb_warn_deprecated_to_remove(const char *fmt, const char *removal, ...), 1, 3);
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);
PRINTF_ARGS(void rb_sys_enc_warning(rb_encoding *enc, const char *fmt, ...), 2, 3);