From 77898c33e38be4333112986f9f4f68867f8ce7ca Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 22 Jun 2012 04:32:39 +0000 Subject: error.c: rb_check_copyable * error.c (rb_check_copyable): new function, to ensure the target is not frozen and the source is not tainted nor untrusted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 6389073265..e5167c6fad 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -251,6 +251,7 @@ rb_check_trusted_inline(VALUE obj) } #define rb_check_trusted(obj) rb_check_trusted_inline(obj) #endif +void rb_check_copyable(VALUE obj, VALUE orig); #define OBJ_INIT_COPY(obj, orig) \ ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) -- cgit v1.2.3