summaryrefslogtreecommitdiff
path: root/template/known_errors.inc.tmpl
blob: 86c23e18e43964cd76629557fc597848045a9db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/** -*-c-*-
 * This file is automatically generated by tools/generic_erb.rb
 * DO NOT TOUCH!
 *
 * If you want to fix something, you should edit 'template/knwon_erros.inc.tmpl or defs/knwon_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
}