mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
3a5c011b8e
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
17 lines
418 B
C
17 lines
418 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+/)
|
|
void Init_syserr(void) {
|
|
rb_eNOERROR = set_syserr(0, "NOERROR");
|
|
% error_names.each do |name|
|
|
#ifdef <%=name%>
|
|
set_syserr(<%=name%>, "<%=name%>");
|
|
#else
|
|
set_syserr(0, "<%=name%>");
|
|
#endif
|
|
% end
|
|
}
|