mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-29 05:35:16 +03:00
25 lines
888 B
Go
25 lines
888 B
Go
package converter
|
|
|
|
import "github.com/therecipe/qt/internal/binding/parser"
|
|
|
|
func GoOutputParametersFromC(function *parser.Function, name string) string {
|
|
if function.Meta == parser.CONSTRUCTOR {
|
|
return goOutput(name, function.Name, function, function.PureGoOutput)
|
|
}
|
|
return goOutput(name, function.Output, function, function.PureGoOutput)
|
|
}
|
|
|
|
func GoJSOutputParametersFromC(function *parser.Function, name string) string {
|
|
if function.Meta == parser.CONSTRUCTOR {
|
|
return goOutputJS(name, function.Name, function, function.PureGoOutput)
|
|
}
|
|
return goOutputJS(name, function.Output, function, function.PureGoOutput)
|
|
}
|
|
|
|
func GoOutputParametersFromCFailed(function *parser.Function) string {
|
|
if function.Meta == parser.CONSTRUCTOR {
|
|
return goOutputFailed(function.Name, function, function.PureGoOutput)
|
|
}
|
|
return goOutputFailed(function.Output, function, function.PureGoOutput)
|
|
}
|