[Mathlib-commitlog] SF.net SVN: mathlib:[724] JMathLib/trunk/src/jmathlib/toolbox/jmathlib/ system
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-23 13:37:38
|
Revision: 724
http://mathlib.svn.sourceforge.net/mathlib/?rev=724&view=rev
Author: st_mueller
Date: 2009-01-23 13:37:36 +0000 (Fri, 23 Jan 2009)
Log Message:
-----------
getdebug() and setdebug()
Modified Paths:
--------------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java
Added Paths:
-----------
JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getdebug.java
Added: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getdebug.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getdebug.java (rev 0)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/getdebug.java 2009-01-23 13:37:36 UTC (rev 724)
@@ -0,0 +1,35 @@
+package jmathlib.toolbox.jmathlib.system;
+
+import jmathlib.core.functions.ExternalFunction;
+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*/
+public class getdebug extends ExternalFunction
+{
+ public OperandToken evaluate(Token[] operands, GlobalValues globals)
+ {
+ if (getNArgIn(operands) !=0)
+ throwMathLibException("getdebug: number of arguments !=0");
+
+ return new LogicalToken(ErrorLogger.getDebug());
+ }
+}
+
+/*
+@GROUP
+system
+@SYNTAX
+getdebug()
+@DOC
+returns state of debug logging
+@NOTES
+@EXAMPLES
+getdebug()
+@SEE
+setdebug
+*/
+
Modified: JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java
===================================================================
--- JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java 2009-01-23 13:34:27 UTC (rev 723)
+++ JMathLib/trunk/src/jmathlib/toolbox/jmathlib/system/setdebug.java 2009-01-23 13:37:36 UTC (rev 724)
@@ -48,5 +48,6 @@
setdebug(1) turns debug output on
setdebug(0) turns debug output off
@SEE
+getdebug
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|