Ver Fonte

Fixed a translator bug where it was trying to emit an extern type!

Mark Sibly há 9 anos atrás
pai
commit
5625cb272c
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/mx2cc/translator_cpp.monkey2

+ 1 - 1
src/mx2cc/translator_cpp.monkey2

@@ -281,7 +281,7 @@ Class Translator_CPP Extends Translator
 	
 		For Local ctype2:=Eachin _usesTypes.Values
 		
-			If ctype2.transFile<>fdecl Or emitted[ClassName( ctype2 )] Continue
+			If ctype2.cdecl.IsExtern Or ctype2.transFile<>fdecl Or emitted[ClassName( ctype2 )] Continue
 			
 			If insPos<>-1
 				EmitBr()