Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)

Namespaces | Defines | Functions
basics/debug.hh File Reference
#include <iostream>
#include <iomanip>
#include <cstring>
#include <sys/types.h>
#include <cassert>
Include dependency graph for debug.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  concepts
 

Geometries and material constants for eddy current problems.


Defines

#define __PRETTY_FUNCTION__   "(unknown)"
#define DEBUG_FUNCTION   __PRETTY_FUNCTION__
#define DEBUGL(doit, msg)
 Debug Line.
#define DP(doit, msg, var)   if(doit!=0) std::cout << msg << " " << var;
 Debug Print.
#define DPL(doit, msg, var)   if(doit!=0) std::cout << msg << " " << var << std::endl;
 Debug Print Line.

Functions

char * concepts::shorten (const char *FILE)
 Shortens the string to the given size.

Define Documentation

#define __PRETTY_FUNCTION__   "(unknown)"

Definition at line 21 of file debug.hh.

#define DEBUG_FUNCTION   __PRETTY_FUNCTION__

Definition at line 22 of file debug.hh.

#define DP (   doit,
  msg,
  var 
)    if(doit!=0) std::cout << msg << " " << var;

Debug Print.

Prints a debugging message with a variable if the first parameter is true. At the end, the line is not wrapped.

Parameters:
doitThe line is only printed if true.
msgSome text
varA variable
#define DPL (   doit,
  msg,
  var 
)    if(doit!=0) std::cout << msg << " " << var << std::endl;

Debug Print Line.

Prints a debugging message with a variable if the first parameter is true. At the end, the line is wrapped.

Parameters:
doitThe line is only printed if true.
msgSome text
varA variable

Home | Doxygen Documentation | Tutorials | Developer Tools (restricted)