2008-12-09 10:14:13 +03:00
|
|
|
/** -*-c-*-
|
2008-09-26 13:05:33 +04:00
|
|
|
* DO NOT EDIT
|
2014-10-26 06:26:31 +03:00
|
|
|
* This file is automatically generated by tool/generic_erb.rb from
|
2008-09-26 13:05:33 +04:00
|
|
|
* template/known_errors.inc.tmpl and defs/known_errors.def.
|
2008-09-26 12:18:49 +04:00
|
|
|
*/
|
|
|
|
|
2024-01-11 16:46:49 +03:00
|
|
|
% error_names = ARGF.readlines.map {|line| [$1, $2] if /\A([A-Z]\S+)(?:\s+(\S.*))?/ =~ line}.compact
|
|
|
|
% error_names.each do |name, doc|
|
|
|
|
#if 0
|
|
|
|
/* <% if doc %>"<%= doc %>"<% else %>\<%= name %><% end %> error */
|
|
|
|
rb_define_const(rb_mErrno, "<%=name%>", e<%=name%>);
|
|
|
|
#endif
|
2008-09-26 12:18:49 +04:00
|
|
|
#ifdef <%=name%>
|
2009-11-24 03:26:52 +03:00
|
|
|
defined_error("<%=name%>", <%=name%>)
|
2008-09-26 12:18:49 +04:00
|
|
|
#else
|
2009-11-24 03:26:52 +03:00
|
|
|
undefined_error("<%=name%>")
|
2008-09-26 12:18:49 +04:00
|
|
|
#endif
|
|
|
|
% end
|