* gc.c: __size__ removed. use the length of __members__ instead.
[ruby-svn.git] / template / yasmdata.rb.tmpl
blob95ad092e4f8c2538e37ee114777d885506365cfe
1 # -*-ruby-*-
4 class VM
5   class InstructionSequence
6     class Instruction
7       InsnID2NO = {
8 <%= insn_id2no %>
9       }
10       
11       def self.id2insn_no id
12         if InsnID2NO.has_key? id
13           InsnID2NO[id]
14         end
15       end
16     end
17   end
18 end