From 2073258a7d192e8d2bc853e10464a7a5fcac8f2d Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 5 Jun 2012 11:13:18 +0000 Subject: obj_init_copy * object.c (rb_obj_init_copy): should check if trusted too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 9690964ac8..a3d583c2ea 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -252,6 +252,9 @@ rb_check_trusted_inline(VALUE obj) #define rb_check_trusted(obj) rb_check_trusted_inline(obj) #endif +#define OBJ_INIT_COPY(obj, orig) \ + ((obj) != (orig) && (rb_obj_init_copy((obj), (orig)), 1)) + /* eval.c */ int rb_sourceline(void); const char *rb_sourcefile(void); -- cgit v1.2.3