Add a simple line tracing macro

This commit is contained in:
Danny Robson 2011-07-16 14:47:10 +10:00
parent 24e764c648
commit ce747924ab

View File

@ -28,6 +28,11 @@
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#define trace { \
std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \
}
#define verify_soft(C, COND) ({ \ #define verify_soft(C, COND) ({ \
const auto value = (C); \ const auto value = (C); \
check_soft(value COND); \ check_soft(value COND); \