From f41b617b347b6549d213482d0c75ddeadcf19a29 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 22 Jul 2011 14:33:30 -0700 Subject: uhd: added helpful UHD_VAR macro for debugging purposes --- host/include/uhd/utils/msg.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host/include') diff --git a/host/include/uhd/utils/msg.hpp b/host/include/uhd/utils/msg.hpp index b0f00e13d..3aac9577a 100644 --- a/host/include/uhd/utils/msg.hpp +++ b/host/include/uhd/utils/msg.hpp @@ -34,6 +34,10 @@ #define UHD_HERE() \ UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl +//! Helpful debug tool to print a variable +#define UHD_VAR(var) \ + UHD_MSG(status) << #var << " = " << var << std::endl; + namespace uhd{ namespace msg{ //! Possible message types -- cgit v1.2.3