Ver Fonte

Fixed possible generation of imported structs.

woollybah há 6 anos atrás
pai
commit
33596f84fc
1 ficheiros alterados com 2 adições e 1 exclusões
  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)