mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +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{}
|
||||
|
||||
for _, ref := range getReferencedTypes(src) {
|
||||
if !ImportHeaderForClass(ref) {
|
||||
continue
|
||||
}
|
||||
|
||||
if ref == "QString" {
|
||||
ret.WriteString("#include <QString>\n")
|
||||
@ -593,6 +590,10 @@ func emitBindingCpp(src *CppParsedHeader, filename string) (string, error) {
|
||||
continue
|
||||
}
|
||||
|
||||
if !ImportHeaderForClass(ref) {
|
||||
continue
|
||||
}
|
||||
|
||||
ret.WriteString(`#include <` + ref + ">\n")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user