2
0
Эх сурвалжийг харах

Fixed missing underscore in function impl.

Brucey 8 жил өмнө
parent
commit
5b9b21cd93
1 өөрчлөгдсөн 7 нэмэгдсэн , 1 устгасан
  1. 7 1
      ctranslator.bmx

+ 7 - 1
ctranslator.bmx

@@ -4334,7 +4334,13 @@ End Rem
 			funcMunged = classDecl.munged + "_" + fdecl.ident + MangleMethod(fdecl)
 		End If
 
-		Local t:String = TransObject(classdecl) + " _" + funcMunged + "_ObjectNew"
+		Local t:String = TransObject(classdecl) + " "
+		
+		If Not classDecl.IsStruct() Then
+			t :+ "_"
+		End If
+		
+		t :+ funcMunged + "_ObjectNew"
 
 		'Find decl we override
 		Local odecl:TFuncDecl=fdecl