rmw  master
C API providing a middleware abstraction layer which is used to implement the rest of ROS.
error_handling.h
Go to the documentation of this file.
1 // Copyright 2014 Open Source Robotics Foundation, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 #ifndef RMW__ERROR_HANDLING_H_
16 #define RMW__ERROR_HANDLING_H_
17 
18 #ifdef __cplusplus
19 extern "C"
20 {
21 #endif
22 
23 #include <rcutils/error_handling.h>
24 
27 
28 #define RMW_SAFE_FWRITE_TO_STDERR RCUTILS_SAFE_FWRITE_TO_STDERR
29 
30 #define rmw_initialize_error_handling_thread_local_storage \
31  rcutils_initialize_error_handling_thread_local_storage
32 
33 #define rmw_set_error_state rcutils_set_error_state
34 
35 #define RMW_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) \
36  RCUTILS_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type)
37 
38 #define RMW_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) \
39  RCUTILS_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement)
40 
41 #define RMW_SET_ERROR_MSG(msg) RCUTILS_SET_ERROR_MSG(msg)
42 
43 #define RMW_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, ...) \
44  RCUTILS_SET_ERROR_MSG_WITH_FORMAT_STRING(format_string, __VA_ARGS__)
45 
46 #define rmw_error_is_set rcutils_error_is_set
47 
48 #define rmw_get_error_state rcutils_get_error_state
49 
50 #define rmw_get_error_string rcutils_get_error_string
51 
52 #define rmw_reset_error rcutils_reset_error
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif // RMW__ERROR_HANDLING_H_
rcutils_error_string_t rmw_error_string_t
Definition: error_handling.h:25
rcutils_error_state_t rmw_error_state_t
Definition: error_handling.h:26