fix style
This commit is contained in:
parent
6ccbb35597
commit
7bceed4071
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue