5.1.12 dbprint
--------------
Syntax:
dbprint ( int_expression, expression_list )
Type:
none
Purpose:
applies the print command to each expression in the expression_list if
int_expression is positive.
dbprint may also be used in procedures
in order to print results subject to certain
conditions.
Syntax:
dbprint ( expression )
Type:
none
Purpose:
The print command is applied to the expression
if printlevel>=voice.
Note:
See Guidelines for writing a library, for an example how this is used
for displaying comments while procedures are executed.
Example:
  int debug=0;
  intvec i=1,2,3;
  dbprint(debug,i);
  debug=1;
  dbprint(debug,i);
==> 1,2,3
  voice;
==> 1
  printlevel;
==> 0
  dbprint(i);
See
Debugging tools;
print;
printlevel;
voice.
<font size="-1">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; User manual for <a href="http://www.singular.uni-kl.de/"><i>Singular</i></a> version 2-0-4, October 2002,
generated by <a href="http://www.gnu.org/software/texinfo/"><i>texi2html</i></a>.
</font>

</body>
</html>
