Lines Matching refs:command
31 def commandAliasDefinition (command): argument
32 return "#define\t%s\t%s" % (command.name, getMangledName(command.name))
34 def commandWrapperDeclaration (command): argument
36 command.type,
37 getMangledName(command.name),
38 ", ".join([param.declaration for param in command.params]))
46 def getDefaultReturn (command): argument
47 if command.name == "glGetError":
50 assert command.type != 'void'
51 return "(%s)0" % command.type
53 def commandWrapperDefinition (command): argument
63 returnType = command.type,
64 mangledName = getMangledName(command.name),
65 paramDecls = commandParams(command),
66 defaultReturn = " " + getDefaultReturn(command) if command.type != 'void' else "",
67 maybeReturn = "return " if command.type != 'void' else "",
68 memberName = getFunctionMemberName(command.name),
69 arguments = commandArgs(command))