diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/id.h.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl index 22fe9ef467..dd0afab27d 100644 --- a/template/id.h.tmpl +++ b/template/id.h.tmpl @@ -115,11 +115,13 @@ enum ruby_method_ids { }; #ifdef tLAST_TOKEN +struct ruby_method_ids_check { #define ruby_method_id_check_for(name, value) \ - typedef int ruby_method_id_check_for_##name[name == value ? 1 : -1] + int checking_for_##name[name == value ? 1 : -1] % tokens.map do |token, value| ruby_method_id_check_for(<%=token%>, <%=value%>); % end +}; #endif #endif /* RUBY_ID_H */ |