fixes types with a header

This commit is contained in:
ringabout
2025-01-08 19:27:25 +08:00
parent d39c76b8bd
commit 237669a1b2

View File

@@ -235,7 +235,7 @@ proc isImportedType(t: PType): bool =
result = t.sym != nil and sfImportc in t.sym.flags
proc isNoDeclType(t: PType): bool =
result = t.sym != nil and lfNoDecl in t.sym.loc.flags
result = t.sym != nil and {lfNoDecl, lfHeader} * t.sym.loc.flags = {}
proc isImportedCppType(t: PType): bool =
let x = t.skipTypes(irrelevantForBackend)