mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* template/known_errors.inc.tmpl: generate defined_error() and undefined_error() instead of set_syserr. * error.c (Init_syserr): define defined_error() and undefined_error() to follow the above change. (rb_strerrno): defined. * thread_pthread.c: show error message and errno macro name with rb_bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			349 B
		
	
	
	
		
			C
		
	
	
	
	
	
/** -*-c-*-
 | 
						|
 * DO NOT EDIT
 | 
						|
 * This file is automatically generated by tools/generic_erb.rb from
 | 
						|
 * template/known_errors.inc.tmpl and defs/known_errors.def.
 | 
						|
 */
 | 
						|
 | 
						|
% error_names = ARGF.read.split(/\s+/)
 | 
						|
% error_names.each do |name|
 | 
						|
#ifdef <%=name%>
 | 
						|
        defined_error("<%=name%>", <%=name%>)
 | 
						|
#else
 | 
						|
        undefined_error("<%=name%>")
 | 
						|
#endif
 | 
						|
% end
 |