diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-17 05:45:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-17 05:45:44 +0000 |
commit | 51bb002fdc6d19e194ffec439c494c6252422f3f (patch) | |
tree | f819252822221379fcc79679cc988b8c1b9b5c2d /error.c | |
parent | 47b03e7a10e0856385d39272b70a54257aa9593f (diff) | |
download | ruby-51bb002fdc6d19e194ffec439c494c6252422f3f.tar.gz |
DEPRECATED_INTERNAL_FEATURE
* error.c (ruby_deprecated_internal_feature): renamed, to
explicitly represent deprecation.
* internal.h (DEPRECATED_INTERNAL_FEATURE): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -132,23 +132,23 @@ rb_syntax_error_append(VALUE exc, VALUE file, int line, int column, void rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...) { - ONLY_FOR_INTERNAL_USE("rb_compile_error_with_enc()"); + DEPRECATED_INTERNAL_FEATURE("rb_compile_error_with_enc()"); } void rb_compile_error(const char *file, int line, const char *fmt, ...) { - ONLY_FOR_INTERNAL_USE("rb_compile_error()"); + DEPRECATED_INTERNAL_FEATURE("rb_compile_error()"); } void rb_compile_error_append(const char *fmt, ...) { - ONLY_FOR_INTERNAL_USE("rb_compile_error_append()"); + DEPRECATED_INTERNAL_FEATURE("rb_compile_error_append()"); } void -ruby_only_for_internal_use(const char *func) +ruby_deprecated_internal_feature(const char *func) { rb_print_backtrace(); rb_fatal("%s is only for internal use and deprecated; do not use", func); |