Browse Source

Don't generate imported enum initialiser.

woollybah 6 years ago
parent
commit
9f8f28863e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ctranslator.bmx

+ 3 - 0
ctranslator.bmx

@@ -6010,6 +6010,9 @@ End If
 
 		' initialise enums
 		For Local decl:TEnumDecl = EachIn app.Semanted()
+
+			If decl.declImported Continue
+			
 			Emit decl.munged + "_BBEnum_impl = &" + decl.munged + "_BBEnum;"
 		Next