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:
parent
9e1b74ff5b
commit
200cea6326
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue