mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +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 "
|
||||
afterCall := ""
|
||||
|
||||
if m.ReturnType.ParameterType == "void" {
|
||||
if m.ReturnType.ParameterType == "void" && !m.ReturnType.Pointer {
|
||||
shouldReturn = ""
|
||||
|
||||
} else if m.ReturnType.ParameterType == "QString" {
|
||||
|
@ -125,7 +125,7 @@ import "C"
|
||||
afterword := ""
|
||||
returnTypeDecl := m.ReturnType.ParameterType // FIXME handle byRef/const here too
|
||||
|
||||
if m.ReturnType.ParameterType == "void" {
|
||||
if m.ReturnType.ParameterType == "void" && !m.ReturnType.Pointer {
|
||||
shouldReturn = ""
|
||||
returnTypeDecl = ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user