ruby/template/known_errors.inc.tmpl

18 строки
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
}