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 <sstream>
#define trace { \
std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \
}
#define verify_soft(C, COND) ({ \
const auto value = (C); \
check_soft(value COND); \