浏览代码

Don't use underscore prefix on structs. Fixes bmx-ng/brl.mod#48

woollybah 8 年之前
父节点
当前提交
3226ded965
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 5 1
      ctranslator.bmx
  2. 1 1
      options.bmx

+ 5 - 1
ctranslator.bmx

@@ -4460,7 +4460,11 @@ End Rem
 	
 	Method EmitClassDeclObjectNewProto(classDecl:TClassDecl, fdecl:TFuncDecl)
 
-		Local t:String = TransObject(classdecl) + " _"
+		Local t:String = TransObject(classdecl) + " "
+		
+		If Not classDecl.IsStruct() Then
+			t :+ "_"
+		End If
 		
 		If classDecl = fdecl.scope Then
 			t :+ fdecl.munged

+ 1 - 1
options.bmx

@@ -25,7 +25,7 @@ SuperStrict
 
 Import "base.configmap.bmx"
 
-Const version:String = "0.88"
+Const version:String = "0.89"
 
 Const BUILDTYPE_APP:Int = 0
 Const BUILDTYPE_MODULE:Int = 1