19 #ifndef INCLUDED_UHD_TRANSPORT_NIRIO_STATUS_H 20 #define INCLUDED_UHD_TRANSPORT_NIRIO_STATUS_H 29 #define ENABLE_EXTENDED_ERROR_INFO false 33 namespace uhd {
namespace niusrprio {
49 #define nirio_status_fatal(status) ((status) < 0) 50 #define nirio_status_not_fatal(status) ((status) >= 0) 52 #define nirio_status_chain(func, status) \ 53 if (nirio_status_not_fatal(status)) { \ 55 if (ENABLE_EXTENDED_ERROR_INFO && nirio_status_fatal(status)) { \ 56 fprintf(stderr,"ERROR: The following function call returned status code %d\n%s\n%s:%d\n",status,#func,__FILE__,__LINE__); \ 61 #define NIRIO_ERR_INFO(CONST_NAME, ERR_CODE, ERR_MSG) \ 62 static const nirio_status CONST_NAME = ERR_CODE;
const char * msg
Definition: status.h:38
static const nirio_err_info NIRIO_ERROR_TABLE[]
Definition: status.h:40
static const size_t NIRIO_ERROR_TABLE_SIZE
Definition: status.h:41
nirio_status code
Definition: status.h:37
#define UHD_API
Definition: config.hpp:79
Definition: convert.hpp:28
int32_t nirio_status
Definition: status.h:31
UHD_API void nirio_status_to_exception(const nirio_status &status, const std::string &message)
UHD_API const std::string lookup_err_msg(nirio_status code)
nirio_err_info(nirio_status arg_code, const char *arg_msg)
Definition: status.h:35