Lines Matching defs:switchCode
275 switchCode = []
453 switchCode.append(" switch(%s) {" % paramName)
493 switchCode.append(" case %s: /* size %s */" % (paramValue, dependentVecSize))
495 switchCode.append(" case %s:" % paramValue)
529 switchCode.append(" if (%s) {" % conditional[4:])
532 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s=0x%s)", %s);' % (errorCode, funcName, paramName, "%x", paramName))
533 switchCode.append(" %s;" % errorReturn)
534 switchCode.append(" }")
541 switchCode.append(" convert_%s_value = 0;" % dependentParamName)
547 switchCode.append(" n_%s = %s;" % (dependentParamName, dependentVecSize))
551 switchCode.append(" break;")
556 switchCode.append(" default:")
561 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s)");' % (errorCode, funcName, paramName))
563 switchCode.append(' _mesa_error(_mesa_get_current_context(), %s, "gl%s(%s=%s)", %s);' % (errorCode, funcName, paramName, formatString, paramName))
564 switchCode.append(" %s;" % errorReturn)
567 switchCode.append(" }")
633 not switchCode and
652 if len(switchCode) > 0:
653 print "\n".join(switchCode) + "\n"