mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
genbindings/cabi: emit class typedef even if there is no header
This commit is contained in:
parent
896f150f35
commit
f87002914d
@ -577,9 +577,6 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
|||||||
ret := strings.Builder{}
|
ret := strings.Builder{}
|
||||||
|
|
||||||
for _, ref := range getReferencedTypes(src) {
|
for _, ref := range getReferencedTypes(src) {
|
||||||
if !ImportHeaderForClass(ref) {
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
|
|
||||||
if ref == "QString" {
|
if ref == "QString" {
|
||||||
ret.WriteString("#include <QString>\n")
|
ret.WriteString("#include <QString>\n")
|
||||||
@ -593,6 +590,10 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !ImportHeaderForClass(ref) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
ret.WriteString(`#include <` + ref + ">\n")
|
ret.WriteString(`#include <` + ref + ">\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user