From 7bceed40712ba229c577909e27c8f33892fc8180 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Wed, 16 Dec 2015 15:00:52 -0800 Subject: [PATCH] fix style --- rcl/src/rcl/common.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcl/src/rcl/common.h b/rcl/src/rcl/common.h index 2b2d5f7..e5c8027 100644 --- a/rcl/src/rcl/common.h +++ b/rcl/src/rcl/common.h @@ -26,10 +26,11 @@ extern "C" #define RCL_CHECK_ARGUMENT_FOR_NULL(argument, error_return_type) \ RCL_CHECK_FOR_NULL_WITH_MSG(argument, #argument " argument is null", return error_return_type) -#define RCL_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) if (!value) { \ +#define RCL_CHECK_FOR_NULL_WITH_MSG(value, msg, error_statement) \ + if (!(value)) { \ RCL_SET_ERROR_MSG(msg); \ error_statement; \ -} + } /// Retrieve the value of the given environment variable if it exists, or "". /* The returned cstring is only valid until the next time this function is