mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings: fixes for functions returning void*
This commit is contained in:
parent
d0c627e7a5
commit
6a44b59b52
@ -206,7 +206,7 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
|||||||
shouldReturn := "return "
|
shouldReturn := "return "
|
||||||
afterCall := ""
|
afterCall := ""
|
||||||
|
|
||||||
if m.ReturnType.ParameterType == "void" {
|
if m.ReturnType.ParameterType == "void" && !m.ReturnType.Pointer {
|
||||||
shouldReturn = ""
|
shouldReturn = ""
|
||||||
|
|
||||||
} else if m.ReturnType.ParameterType == "QString" {
|
} else if m.ReturnType.ParameterType == "QString" {
|
||||||
|
@ -125,7 +125,7 @@ import "C"
|
|||||||
afterword := ""
|
afterword := ""
|
||||||
returnTypeDecl := m.ReturnType.ParameterType // FIXME handle byRef/const here too
|
returnTypeDecl := m.ReturnType.ParameterType // FIXME handle byRef/const here too
|
||||||
|
|
||||||
if m.ReturnType.ParameterType == "void" {
|
if m.ReturnType.ParameterType == "void" && !m.ReturnType.Pointer {
|
||||||
shouldReturn = ""
|
shouldReturn = ""
|
||||||
returnTypeDecl = ""
|
returnTypeDecl = ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user