original_docstring: Writes the cmd helper definition for a cmd.
docstring: Writes the cmd helper definition for a cmd.
docstring_tokens: Writes the cmd helper definition for a cmd .
code: def WriteCmdHelper(self, func, file):
      """Writes the cmd helper definition for a cmd."""
      code = """  void %(name)s(%(typed_args)s) {
      gles2::cmds::%(name)s* c = GetCmdSpace<gles2::cmds::%(name)s>();
      if (c) {
        c->Init(%(args)s);
      }
    }
  
  """
      file.Write(code % {
            "name": func.name,
            "typed_args": func.MakeTypedCmdArgString(""),
            "args": func.MakeCmdArgString(""),
          })
code_tokens: def WriteCmdHelper ( self , func , file ) : code = """  void %(name)s(%(typed_args)s) {
      gles2::cmds::%(name)s* c = GetCmdSpace<gles2::cmds::%(name)s>();
      if (c) {
        c->Init(%(args)s);
      }
    }
  
  """ file . Write ( code % { "name" : func . name , "typed_args" : func . MakeTypedCmdArgString ( "" ) , "args" : func . MakeCmdArgString ( "" ) , } )
short_docstring: Writes the cmd helper definition for a cmd.
short_docstring_tokens: Writes the cmd helper definition for a cmd .
comment: """Writes the cmd helper definition for a cmd."""