parameters: (self, table, isGlobal=False)
docstring: Emit Opcode Table in C.
docstring_summary: Emit Opcode Table in C.
docstring_tokens: Emit Opcode Table in C .
function: def genOpcodeTable(self, table, isGlobal=False):
          """Emit Opcode Table in C.
          """
          self.ItabC.write( "\n" );
          if not isGlobal:
              self.ItabC.write('static ')
          self.ItabC.write( "const uint16_t %s[] = {\n" % self.getTableName(table))
          for i in range(table.size()):
              if i > 0 and i % 4 == 0: 
                  self.ItabC.write( "\n" )
              if i % 4 == 0:
                  self.ItabC.write( "  /* %2x */" % i)
              e = table.entryAt(i)
              if e is None:
                  self.ItabC.write("%12s," % "INVALID")
              elif isinstance(e, UdOpcodeTable):
                  self.ItabC.write("%12s," % ("GROUP(%d)" % self.getTableIndex(e)))
              elif isinstance(e, UdInsnDef):
                  self.ItabC.write("%12s," % self.getInsnIndex(e))
          self.ItabC.write( "\n" )
          self.ItabC.write( "};\n" )
function_tokens: def genOpcodeTable ( self , table , isGlobal = False ) : self . ItabC . write ( "\n" ) if not isGlobal : self . ItabC . write ( 'static ' ) self . ItabC . write ( "const uint16_t %s[] = {\n" % self . getTableName ( table ) ) for i in range ( table . size ( ) ) : if i > 0 and i % 4 == 0 : self . ItabC . write ( "\n" ) if i % 4 == 0 : self . ItabC . write ( "  /* %2x */" % i ) e = table . entryAt ( i ) if e is None : self . ItabC . write ( "%12s," % "INVALID" ) elif isinstance ( e , UdOpcodeTable ) : self . ItabC . write ( "%12s," % ( "GROUP(%d)" % self . getTableIndex ( e ) ) ) elif isinstance ( e , UdInsnDef ) : self . ItabC . write ( "%12s," % self . getInsnIndex ( e ) ) self . ItabC . write ( "\n" ) self . ItabC . write ( "};\n" )