mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	pass to obj_info().
obj_info() has a routine to show SPECIAL_CONST_P() objects so we don't need to check it here.
This commit is contained in:
		
							parent
							
								
									300de6aec2
								
							
						
					
					
						commit
						82b02c131e
					
				
					 1 changed files with 1 additions and 6 deletions
				
			
		
							
								
								
									
										7
									
								
								gc.c
									
										
									
									
									
								
							
							
						
						
									
										7
									
								
								gc.c
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -11421,12 +11421,7 @@ obj_info(VALUE obj)
 | 
			
		|||
MJIT_FUNC_EXPORTED const char *
 | 
			
		||||
rb_obj_info(VALUE obj)
 | 
			
		||||
{
 | 
			
		||||
    if (!rb_special_const_p(obj)) {
 | 
			
		||||
	return obj_info(obj);
 | 
			
		||||
    }
 | 
			
		||||
    else {
 | 
			
		||||
	return obj_type_name(obj);
 | 
			
		||||
    }
 | 
			
		||||
    return obj_info(obj);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue