Add a simple line tracing macro
This commit is contained in:
parent
24e764c648
commit
ce747924ab
@ -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); \
|
||||||
|
Loading…
Reference in New Issue
Block a user