Sfoglia il codice sorgente

Fixed possible generation of imported structs.

woollybah 6 anni fa
parent
commit
33596f84fc
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      ctranslator.bmx

+ 2 - 1
ctranslator.bmx

@@ -3638,7 +3638,8 @@ End Rem
 	Field emittedStructs:TList = New TList
 	Field emittedStructs:TList = New TList
 
 
 	Method EmitStructClassProto( classDecl:TClassDecl )
 	Method EmitStructClassProto( classDecl:TClassDecl )
-	
+
+		If classDecl.declImported Return
 		If emittedStructs.Contains(classDecl) Return
 		If emittedStructs.Contains(classDecl) Return
 		
 		
 		emittedStructs.AddLast(classDecl)
 		emittedStructs.AddLast(classDecl)