From ce747924ab3089bd347482085f929c779c1a6cb2 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Sat, 16 Jul 2011 14:47:10 +1000 Subject: [PATCH] Add a simple line tracing macro --- debug.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debug.hpp b/debug.hpp index 33974ea4..00b3d576 100644 --- a/debug.hpp +++ b/debug.hpp @@ -28,6 +28,11 @@ #include #include +#define trace { \ + std::cerr << __FILE__ << ":" << __func__ << ":" << __LINE__ << std::endl; \ +} + + #define verify_soft(C, COND) ({ \ const auto value = (C); \ check_soft(value COND); \