NuTo
Numerics Tool
Macros
Debug.h File Reference
#include <iostream>
#include <boost/foreach.hpp>
#include <boost/typeof/typeof.hpp>

Go to the source code of this file.

Macros

#define DBG_OPENER   std::cout << __FILE__ << ":" << __LINE__ << ":\t"
 
#define DBG_POSITION   DBG_OPENER << std::endl;
 
#define DBG_POSITION_INFO(v)   DBG_OPENER << "'\"" << (v) << "\"" << std::endl;
 
#define DBG_PRINT_VAL(v)   DBG_OPENER << "'" << #v << "' = \"" << (v) << "\"" << std::endl << std::endl;
 
#define DBG_PRINT_VEC(v)
 

Macro Definition Documentation

#define DBG_OPENER   std::cout << __FILE__ << ":" << __LINE__ << ":\t"
#define DBG_POSITION   DBG_OPENER << std::endl;
#define DBG_POSITION_INFO (   v)    DBG_OPENER << "'\"" << (v) << "\"" << std::endl;
#define DBG_PRINT_VAL (   v)    DBG_OPENER << "'" << #v << "' = \"" << (v) << "\"" << std::endl << std::endl;
#define DBG_PRINT_VEC (   v)
Value:
DBG_OPENER << "Entries of: \"" << #v << "\"" << std::endl; \
{ \
std::size_t dbg_i(0); \
BOOST_FOREACH (BOOST_TYPEOF(*boost::begin(v)) const& x, v) \
std::cout << #v << "[" << dbg_i++ << "] : \"" << x << "\"" << std::endl; \
} \
std::cout << std::endl << std::endl;
int v
Definition: Quad2DPatchTest.py:9
#define DBG_OPENER
Definition: Debug.h:15