18 #ifndef INCLUDED_UHD_UTILS_MSG_HPP 19 #define INCLUDED_UHD_UTILS_MSG_HPP 31 #define UHD_MSG(type) \ 32 uhd::msg::_msg(uhd::msg::type)() 36 UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl 39 #define UHD_VAR(var) \ 40 UHD_MSG(status) << #var << " = " << var << std::endl; 43 #define UHD_HEX(var) \ 44 UHD_MSG(status) << #var << " = 0x" << std::hex << std::setfill('0') << std::setw(8) << var << std::dec << std::endl; 46 namespace uhd{
namespace msg{
70 _msg(
const type_t type);
72 std::ostream &operator()(
void);
void(* handler_t)(type_t, const std::string &)
Typedef for a user-registered message handler.
Definition: msg.hpp:57
UHD_API void register_handler(const handler_t &handler)
type_t
Possible message types.
Definition: msg.hpp:49
Definition: build_info.hpp:25
#define UHD_PIMPL_DECL(_name)
Definition: pimpl.hpp:42
Internal message object (called by UHD_MSG macro)
Definition: msg.hpp:68
#define UHD_API
Definition: config.h:73