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 | 6877de73deb7fe75a736a0b5fc54c01ecc0d5b14 (patch) | |
tree | f819252822221379fcc79679cc988b8c1b9b5c2d /internal.h | |
parent | 14d61a94ff01f2d229b6a0c46a13456e72c3e42a (diff) | |
download | ruby-6877de73deb7fe75a736a0b5fc54c01ecc0d5b14.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 'internal.h')
-rw-r--r-- | internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal.h b/internal.h index 5baac16957..4bdc416b3a 100644 --- a/internal.h +++ b/internal.h @@ -1083,8 +1083,9 @@ VALUE rb_name_err_new(VALUE mesg, VALUE recv, VALUE method); rb_exc_raise(rb_name_err_new(mesg, recv, name)) #define rb_name_err_raise(mesg, recv, name) \ rb_name_err_raise_str(rb_fstring_cstr(mesg), (recv), (name)) -NORETURN(void ruby_only_for_internal_use(const char *)); -#define ONLY_FOR_INTERNAL_USE(func) ruby_only_for_internal_use(func) +NORETURN(void ruby_deprecated_internal_feature(const char *)); +#define DEPRECATED_INTERNAL_FEATURE(func) \ + (ruby_deprecated_internal_feature(func), UNREACHABLE) /* eval.c */ VALUE rb_refinement_module_get_refined_class(VALUE module); |