diff options
author | Josh Blum <josh@joshknows.com> | 2011-07-22 14:33:30 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-07-22 14:33:30 -0700 |
commit | f41b617b347b6549d213482d0c75ddeadcf19a29 (patch) | |
tree | 28cc47daa7910180a57526ff0d52193ec31531eb /host/include | |
parent | da40a1aebc16ca05219883c18b2cf96989c470fd (diff) | |
download | uhd-f41b617b347b6549d213482d0c75ddeadcf19a29.tar.gz uhd-f41b617b347b6549d213482d0c75ddeadcf19a29.tar.bz2 uhd-f41b617b347b6549d213482d0c75ddeadcf19a29.zip |
uhd: added helpful UHD_VAR macro for debugging purposes
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/utils/msg.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |