mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	use RUBY_FUNCTION_NAME_STRING instead of __func__ for rp()
This commit is contained in:
		
							parent
							
								
									5a89c05773
								
							
						
					
					
						commit
						a1eb1fabef
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -86,7 +86,7 @@ void ruby_debug_breakpoint(void);
 | 
			
		|||
PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
 | 
			
		||||
 | 
			
		||||
// show obj data structure without any side-effect
 | 
			
		||||
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, __func__)
 | 
			
		||||
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)
 | 
			
		||||
 | 
			
		||||
// same as rp, but add message header
 | 
			
		||||
#define rp_m(msg, obj) do { \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue