diff options
Diffstat (limited to 'host')
-rw-r--r-- | host/include/uhd/utils/log.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/include/uhd/utils/log.hpp b/host/include/uhd/utils/log.hpp index ce6ce16e7..9cc400f7c 100644 --- a/host/include/uhd/utils/log.hpp +++ b/host/include/uhd/utils/log.hpp @@ -198,9 +198,14 @@ namespace uhd { #define UHD_LOGGER_FATAL(component) _UHD_LOG_INTERNAL(component, uhd::log::fatal) +#if defined(__GNUG__) //! Helpful debug tool to print site info #define UHD_HERE() \ + UHD_LOGGER_DEBUG("DEBUG") << __FILE__ << ":" << __LINE__ << " (" << __PRETTY_FUNCTION__ << ")"; +#else +#define UHD_HERE() \ UHD_LOGGER_DEBUG("DEBUG") << __FILE__ << ":" << __LINE__; +#endif //! Helpful debug tool to print a variable #define UHD_VAR(var) \ |