Go to the source code of this file.
#define _UHD_SAFE_CALL_WARNING |
( |
|
code, |
|
|
|
what |
|
) |
| |
Value:
;
#define UHD_LOGV(verbosity)
Definition: log.hpp:59
#define UHD_THROW_SITE_INFO(what)
Definition: exception.hpp:150
helper macro for safe call to produce warnings
#define UHD_SAFE_CALL |
( |
|
code | ) |
|
Value:try{code} \
catch(
const std::exception &e){
\
} \
}
#define _UHD_SAFE_CALL_WARNING(code, what)
helper macro for safe call to produce warnings
Definition: safe_call.hpp:26
A safe-call catches all exceptions thrown by code, and creates a verbose warning about the exception. Usage: UHD_SAFE_CALL(some_code_to_call();)
- Parameters
-
code | the block of code to call safely |