#include <uhd/config.hpp>
#include <uhd/utils/pimpl.hpp>
#include <ostream>
#include <iomanip>
#include <string>
Go to the source code of this file.
|
#define | UHD_MSG(type) uhd::msg::_msg(uhd::msg::type)() |
|
#define | UHD_HERE() UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl |
| Helpful debug tool to print site info. More...
|
|
#define | UHD_VAR(var) UHD_MSG(status) << #var << " = " << var << std::endl; |
| Helpful debug tool to print a variable. More...
|
|
#define | UHD_HEX(var) UHD_MSG(status) << #var << " = 0x" << std::hex << std::setfill('0') << std::setw(8) << var << std::dec << std::endl; |
| Helpful debug tool to print a variable in hex. More...
|
|
◆ UHD_HERE
#define UHD_HERE |
( |
| ) |
UHD_MSG(status) << __FILE__ << ":" << __LINE__ << std::endl |
Helpful debug tool to print site info.
◆ UHD_HEX
#define UHD_HEX |
( |
|
var | ) |
UHD_MSG(status) << #var << " = 0x" << std::hex << std::setfill('0') << std::setw(8) << var << std::dec << std::endl; |
Helpful debug tool to print a variable in hex.
◆ UHD_MSG
A UHD message macro with configurable type. Usage: UHD_MSG(warning) << "some warning message" << std::endl;
◆ UHD_VAR
#define UHD_VAR |
( |
|
var | ) |
UHD_MSG(status) << #var << " = " << var << std::endl; |
Helpful debug tool to print a variable.