summaryrefslogtreecommitdiff
path: root/template/id.h.tmpl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 20:53:06 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-12-24 20:53:06 (GMT)
commitb8db90f35abed0077458a9a6fba257664f474957 (patch)
tree43853d683e5270c346a213108e6a0582896b95ff /template/id.h.tmpl
parent934525776f60171fff0c5453e795de051fc0ab15 (diff)
* template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in a
struct. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/id.h.tmpl')
-rw-r--r--template/id.h.tmpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index 22fe9ef..dd0afab 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 */