Browse Source

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

Mark Sibly 9 years ago
parent
commit
5625cb272c
1 changed files with 1 additions and 1 deletions
  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()