fixes #4148
This commit is contained in:
parent
909a161ad2
commit
8e2528ebbc
1 changed files with 2 additions and 2 deletions
|
|
@ -525,8 +525,8 @@ proc getTypeDescAux(m: BModule, typ: PType, check: var IntSet): Rope =
|
|||
result = getTypePre(m, t)
|
||||
if result != nil: return
|
||||
if containsOrIncl(check, t.id):
|
||||
if isImportedCppType(typ) or isImportedCppType(t): return
|
||||
internalError("cannot generate C type for: " & typeToString(typ))
|
||||
if not (isImportedCppType(typ) or isImportedCppType(t)):
|
||||
internalError("cannot generate C type for: " & typeToString(typ))
|
||||
# XXX: this BUG is hard to fix -> we need to introduce helper structs,
|
||||
# but determining when this needs to be done is hard. We should split
|
||||
# C type generation into an analysis and a code generation phase somehow.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue