rmw
master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
|
#include <stdbool.h>
#include <stddef.h>
#include <rcutils/error_handling.h>
#include "rmw/visibility_control.h"
Go to the source code of this file.
Macros | |
#define | rmw_error_state_copy rcutils_error_state_copy |
#define | rmw_error_state_fini rcutils_error_state_fini |
#define | RMW_SET_ERROR_MSG(msg) rmw_set_error_state(msg, __FILE__, __LINE__); |
Set the error message, as well as append the current file and line number. More... | |
#define | RMW_SET_ERROR_MSG_ALLOC(msg, allocator) rcutils_set_error_state(msg, __FILE__, __LINE__, allocator); |
#define | rmw_error_is_set rcutils_error_is_set |
#define | rmw_get_error_state rcutils_get_error_state |
#define | rmw_get_error_string rcutils_get_error_string |
#define | rmw_get_error_string_safe rcutils_get_error_string_safe |
#define | rmw_reset_error rcutils_reset_error |
Typedefs | |
typedef rcutils_error_state_t | rmw_error_state_t |
Functions | |
void | rmw_set_error_state (const char *error_msg, const char *file, size_t line_number) |
Set the error state, implicitly uses rcutils_get_default_allocator(). More... | |
#define rmw_error_state_copy rcutils_error_state_copy |
#define rmw_error_state_fini rcutils_error_state_fini |
#define RMW_SET_ERROR_MSG | ( | msg | ) | rmw_set_error_state(msg, __FILE__, __LINE__); |
Set the error message, as well as append the current file and line number.
#define RMW_SET_ERROR_MSG_ALLOC | ( | msg, | |
allocator | |||
) | rcutils_set_error_state(msg, __FILE__, __LINE__, allocator); |
#define rmw_error_is_set rcutils_error_is_set |
#define rmw_get_error_state rcutils_get_error_state |
#define rmw_get_error_string rcutils_get_error_string |
#define rmw_get_error_string_safe rcutils_get_error_string_safe |
#define rmw_reset_error rcutils_reset_error |
void rmw_set_error_state | ( | const char * | error_msg, |
const char * | file, | ||
size_t | line_number | ||
) |
Set the error state, implicitly uses rcutils_get_default_allocator().