Revision: 723
http://mathlib.svn.sourceforge.net/mathlib/?rev=723&view=rev
Author: st_mueller
Date: 2009-01-23 13:34:27 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
moved setdebug() to ErrorLogger
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java 2009-01-23 12:58:57 UTC (rev 722)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java 2009-01-23 13:34:27 UTC (rev 723)
@@ -4,6 +4,7 @@
import jmathlib.core.tokens.*;
import jmathlib.core.tokens.numbertokens.DoubleNumberToken;
import jmathlib.core.interpreter.Errors;
+import jmathlib.core.interpreter.ErrorLogger;
import jmathlib.core.interpreter.GlobalValues;
/**External function for controlling the debug setting for the system*/
@@ -22,9 +23,9 @@
int debug = ((DoubleNumberToken)operands[0]).getIntValue(0,0);
if(debug == 0)
- setDebug(false);
+ ErrorLogger.setDebug(false);
else
- setDebug(true);
+ ErrorLogger.setDebug(true);
return new DoubleNumberToken(1);
}
@@ -39,13 +40,13 @@
@GROUP
system
@SYNTAX
-SETDEBUG(value)
+setdebug(value)
@DOC
Switches debug output on or off
@NOTES
@EXAMPLES
-SETDEBUG(1) turns debug output on
-SETDEBUG(0) turns debug output off
+setdebug(1) turns debug output on
+setdebug(0) turns debug output off
@SEE
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|