Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

more/diag/debug.h File Reference

#include <iostream>
#include <iomanip>
#include <string>
#include <memory>
#include <more/io/fwd.h>

Include dependency graph for debug.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

Defines


Define Documentation

#define MORE_CHECK      ((x)? (void)0 : ::more::diag::bits::check_failed(__FILE__, __LINE__, #x))
 

Check that a logical expression is true.

This is similar to assert, but instead of aborting, it keeps a count of the number of failures. See check_exit_status.

#define MORE_CHECK_EQ x,
 
 

Value:

(((x) == (y))? (void)0 : \
     (::more::diag::bits::check_failed(__FILE__, __LINE__, #x " == " #y), \
      std::cerr << "    LHS = " << (x) << "\n    RHS = " << (y) << std::endl, \
      (void)0))
Check that x == y.

If the check fails, the LHS and RHS are printed to std::cerr.

#define MORE_CHECK_FAILED msg       more::diag::bits::check_failed(__FILE__, __LINE__, (msg))
 

#define MORE_DELETE T,
ptr       delete (ptr)
 

#define MORE_ECHO  
 

Value:

((void)(std::clog << __FILE__ << ":" << __LINE__ << ": info: " \
                      << #x << std::endl, (x)))

#define MORE_HERE   (std::cerr << __FILE__ << ":" << __LINE__ << ": info: Here!" << std::endl)
 

#define MORE_NEW T,
args...       new T(args)
 

#define MORE_SHOW  
 

Value:

((void)(std::clog << __FILE__ << ":" << __LINE__ << ": info: " \
                      << #x << " = " << x << std::endl))

#define MORE_SHOW_SOMETIMES      ((more::diag::show_sometimes_helper())? MORE_SHOW(x) : (void)0)
 


Generated on Sat Sep 7 19:11:24 2002 for more with Doxygen 1.2.13.1. Doxygen 1.2.13.1 is written and copyright 1997-2002 by Dimitri van Heesch.