class: Smalltalk
authorClaus Gittinger <cg@exept.de>
Sat, 07 Feb 2015 15:39:44 +0100
changeset 17438 fa80b8989917
parent 17437 9662511375cf
child 17439 1928276a394c
class: Smalltalk added: #ignoreAssertions:
Smalltalk.st
--- a/Smalltalk.st	Sat Feb 07 15:38:59 2015 +0100
+++ b/Smalltalk.st	Sat Feb 07 15:39:44 2015 +0100
@@ -4583,6 +4583,17 @@
     ^ IgnoreAssertion ? false
 !
 
+ignoreAssertions:aBoolean
+    "set to true, if assertions are to be ignored (i.e. not executed).
+     This is false by default in an IDE (i.e. full smalltalk),
+     but can be set to true for standAlone applications
+     (whether that is a good idea and helps, is another question)
+     However, it may make the app a little faster, if assertions are compatational  
+     expensive, as they are skipped (the stc compiler is generatig code which skips those)."
+
+    IgnoreAssertion := aBoolean
+!
+
 isHeadless
     "return true, if this is a headless application
      i.e. no default Display connection is required/used"
@@ -8178,11 +8189,11 @@
 !Smalltalk class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libbasic/Smalltalk.st,v 1.1111 2015-02-07 14:38:04 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Smalltalk.st,v 1.1112 2015-02-07 14:39:44 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libbasic/Smalltalk.st,v 1.1111 2015-02-07 14:38:04 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libbasic/Smalltalk.st,v 1.1112 2015-02-07 14:39:44 cg Exp $'
 !
 
 version_SVN