Skip to content

Commit b93c40a

Browse files
committed
rename macros
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
1 parent 87ffb03 commit b93c40a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rcljava_common/include/rcljava_common/exceptions.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* \param env a JNIEnv pointer, used to check for exceptions.
2525
* \param error_statement statement executed if an exception has happened.
2626
*/
27-
#define RCLJAVA_COMMON_EXCEPTION_CHECK_X(env, error_statement) \
27+
#define RCLJAVA_COMMON_CHECK_FOR_EXCEPTION_WITH_ERROR_STATEMENT(env, error_statement) \
2828
do { \
2929
if (env->ExceptionCheck()) { \
3030
error_statement; \
@@ -35,7 +35,7 @@
3535
/**
3636
* \param env a JNIEnv pointer, used to check for exceptions.
3737
*/
38-
#define RCLJAVA_COMMON_EXCEPTION_CHECK(env) RCLJAVA_COMMON_EXCEPTION_CHECK_X(env, return )
38+
#define RCLJAVA_COMMON_CHECK_FOR_EXCEPTION(env) RCLJAVA_COMMON_CHECK_FOR_EXCEPTION_WITH_STATEMENT(env, return )
3939

4040
/// Call \ref rcljava_throw_rclexception if \a ret is not RCL_RET_OK,
4141
/// and execute \a error_statement in that case.
@@ -49,7 +49,7 @@
4949
* \a base_message can be either a `const char *` or as `std::string`.
5050
* \param error_statement statement executed if ret was not RCL_RET_OK.
5151
*/
52-
#define RCLJAVA_COMMON_THROW_FROM_RCL_X(env, ret, base_message, error_statement) \
52+
#define RCLJAVA_COMMON_THROW_FROM_RCL_WITH_ERROR_STATEMENT(env, ret, base_message, error_statement) \
5353
do { \
5454
if (RCL_RET_OK != ret) { \
5555
rcljava_common::exceptions::rcljava_throw_rclexception( \
@@ -66,7 +66,7 @@
6666
* \param base_message error message that will be passed to the thrown exception.
6767
*/
6868
#define RCLJAVA_COMMON_THROW_FROM_RCL(env, ret, base_message) \
69-
RCLJAVA_COMMON_THROW_FROM_RCL_X(env, ret, base_message, return )
69+
RCLJAVA_COMMON_THROW_FROM_RCL_WITH_ERROR_STATEMENT(env, ret, base_message, return )
7070

7171
namespace rcljava_common
7272
{

0 commit comments

Comments
 (0)