#include <stdio.h>
#include <stddef.h>
#include <stdint.h>
#include <string>
#include <uhd/exception.hpp>
#include "nirio_err_template.h"
Go to the source code of this file.
◆ ENABLE_EXTENDED_ERROR_INFO
#define ENABLE_EXTENDED_ERROR_INFO false |
◆ NIRIO_ERR_INFO
#define NIRIO_ERR_INFO |
( |
|
CONST_NAME, |
|
|
|
ERR_CODE, |
|
|
|
ERR_MSG |
|
) |
| static const nirio_status CONST_NAME = ERR_CODE; |
◆ nirio_status_chain
#define nirio_status_chain |
( |
|
func, |
|
|
|
status |
|
) |
| |
Value: status = (func); \
fprintf(stderr,
"ERROR: The following function call returned status code %d\n%s\n%s:%d\n",
status,#func,__FILE__,__LINE__); \
} \
} \
#define ENABLE_EXTENDED_ERROR_INFO
Definition: status.h:28
#define nirio_status_not_fatal(status)
Definition: status.h:49
#define nirio_status_fatal(status)
Definition: status.h:48
◆ nirio_status_fatal
#define nirio_status_fatal |
( |
|
status | ) |
((status) < 0) |
◆ nirio_status_not_fatal
#define nirio_status_not_fatal |
( |
|
status | ) |
((status) >= 0) |
◆ nirio_status