Browse Source

Protect objects from overzealous optimization.

woollybah 11 years ago
parent
commit
cd14268985
2 changed files with 6 additions and 2 deletions
  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