ruby-changes:36792
From: nobu <ko1@a...>
Date: Wed, 17 Dec 2014 11:57:56 +0900 (JST)
Subject: [ruby-changes:36792] nobu:r48873 (trunk): iseq.c: default option
nobu 2014-12-17 11:57:51 +0900 (Wed, 17 Dec 2014) New Revision: 48873 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48873 Log: iseq.c: default option * iseq.c (rb_iseq_new_with_opt): allow NULL option as COMPILE_OPTION_DEFAULT. Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 48872) +++ iseq.c (revision 48873) @@ -447,6 +447,7 @@ rb_iseq_new_with_opt(NODE *node, VALUE n https://github.com/ruby/ruby/blob/trunk/iseq.c#L447 GetISeqPtr(self, iseq); iseq->self = self; + if (!option) option = &COMPILE_OPTION_DEFAULT; prepare_iseq_build(iseq, name, path, absolute_path, first_lineno, parent, type, option); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/