1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

id.h.tmpl: joke method names

* template/id.h.tmpl (method_ids): create also joke method names
  non-separatedly.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-08-17 08:35:08 +00:00
parent 9e1b74ff5b
commit 200cea6326

View file

@ -45,6 +45,8 @@ method_ids = %w[
__send__
Initialize
UScore
Bitblt
Answer
]
%>
#ifndef RUBY_ID_H
@ -107,12 +109,8 @@ enum ruby_method_ids {
% method_ids.each do |token|
t<%=token%>,
% end
tBitblt,
tAnswer,
tLAST_ID,
#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
TOKEN2ID(Bitblt),
TOKEN2ID(Answer),
% method_ids.each do |token|
TOKEN2ID(<%=token%>),
% end