浏览代码

Protect objects from overzealous optimization.

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

+ 5 - 1
ctranslator.bmx

@@ -443,7 +443,11 @@ t:+"NULLNULLNULL"
 			Return TransType( init.exprType, munged )+"="+init.Trans()
 		Else
 'DebugStop
-			Return TransType( init.exprType, munged )+" "+munged+"="+init.Trans()
+			If TObjectType(init.exprType) Then
+				Return TransType( init.exprType, munged )+" volatile "+munged+"="+init.Trans()
+			Else
+				Return TransType( init.exprType, munged )+" "+munged+"="+init.Trans()
+			End If
 		End If
 	End Method
 

+ 1 - 1
options.bmx

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