2
0
Эх сурвалжийг харах

Fixed possible generation of imported structs.

woollybah 6 жил өмнө
parent
commit
33596f84fc
1 өөрчлөгдсөн 2 нэмэгдсэн , 1 устгасан
  1. 2 1
      ctranslator.bmx

+ 2 - 1
ctranslator.bmx

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