Michele De Stefano's C++ Utilities
echo.hpp File Reference

Contains macros for echoing programming instructions. More...

#include <iostream>

Go to the source code of this file.

Macros

#define MDS_UTILS_ECHO(a)
 Echoes an istruction to stdout and then executes it. More...
 
#define MDS_UTILS_ECHO_RESULT(a)   std::cout << #a << " = " << a << std::endl
 Echoes an instruction that produces a result and executes it, printing the result. More...
 

Detailed Description

Contains macros for echoing programming instructions.

Definition in file echo.hpp.

Macro Definition Documentation

#define MDS_UTILS_ECHO (   a)
Value:
std::cout << #a << std::endl; \
a

Echoes an istruction to stdout and then executes it.

Parameters
aThe instruction to be echoed.
Author
Michele De Stefano
Date
25/05/2014

Definition at line 38 of file echo.hpp.

#define MDS_UTILS_ECHO_RESULT (   a)    std::cout << #a << " = " << a << std::endl

Echoes an instruction that produces a result and executes it, printing the result.

Parameters
aThe inistruction to be echoed.
Author
Michele De Stefano
Date
25/05/2014
Examples:
test_traits.cpp.

Definition at line 53 of file echo.hpp.