mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									55a9667de3
								
							
						
					
					
						commit
						524817bb0b
					
				
					 2 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,7 @@
 | 
			
		|||
Tue Mar 18 23:20:12 2014  Shota Fukumori  <her@sorah.jp>
 | 
			
		||||
 | 
			
		||||
	* vm_eval.c (eval_string_with_cref): Unify to use NIL_P.
 | 
			
		||||
 | 
			
		||||
Tue Mar 18 22:03:41 2014  Shota Fukumori  <her@sorah.jp>
 | 
			
		||||
 | 
			
		||||
	* vm_eval.c (eval_string_with_cref): Use file path even if scope is
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1223,7 +1223,7 @@ eval_string_with_cref(VALUE self, VALUE src, VALUE scope, NODE *const cref_arg,
 | 
			
		|||
	    bind = Check_TypedStruct(scope, &ruby_binding_data_type);
 | 
			
		||||
	    {
 | 
			
		||||
		envval = bind->env;
 | 
			
		||||
		if (absolute_path == Qnil && !NIL_P(bind->path)) {
 | 
			
		||||
		if (NIL_P(absolute_path) && !NIL_P(bind->path)) {
 | 
			
		||||
		    file = bind->path;
 | 
			
		||||
		    line = bind->first_lineno;
 | 
			
		||||
		    absolute_path = rb_current_realfilepath();
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue