Lines Matching refs:command
36 def commandAliasDefinition (command): argument
37 return "#define\t%s\t%s" % (command.name, getMangledName(command.name))
39 def commandWrapperDeclaration (command): argument
41 command.type,
42 getMangledName(command.name),
43 ", ".join([param.declaration for param in command.params]))
51 def getDefaultReturn (command): argument
52 if command.name == "glGetError":
55 assert command.type != 'void'
56 return "(%s)0" % command.type
58 def commandWrapperDefinition (command): argument
68 returnType = command.type,
69 mangledName = getMangledName(command.name),
70 paramDecls = commandParams(command),
71 defaultReturn = " " + getDefaultReturn(command) if command.type != 'void' else "",
72 maybeReturn = "return " if command.type != 'void' else "",
73 memberName = getFunctionMemberName(command.name),
74 arguments = commandArgs(command))