diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-27 05:29:49 +0000 |
commit | d226ce8decef356c7447efb6b6b325bc8fc53dba (patch) | |
tree | fc6ee90568444f58aeea654c4f2326cb5b1f73ae /pack.c | |
parent | f8fe5349802f2d73a70b0b7a190a3c7071efa0f4 (diff) |
internal.h: ONLY_FOR_INTERNAL_USE
* error.c (ruby_only_for_internal_use): raise fatal error when
deprecated function only for internal use is called, not just a
warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r-- | pack.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -220,15 +220,13 @@ str_associated(VALUE str) void rb_str_associate(VALUE str, VALUE add) { - rb_warn("rb_str_associate() is only for internal use and deprecated; do not use"); - str_associate(str, add); + ONLY_FOR_INTERNAL_USE("rb_str_associate()"); } VALUE rb_str_associated(VALUE str) { - rb_warn("rb_str_associated() is only for internal use and deprecated; do not use"); - return str_associated(str); + ONLY_FOR_INTERNAL_USE("rb_str_associated()"); } /* |