 |
Nordic Thingy:52 v2.1.0
|
47 #ifndef __MACROS_COMMON_H__
48 #define __MACROS_COMMON_H__
54 #define RETURN_IF_ERROR(err_code) \
55 if ((err_code) != NRF_SUCCESS) \
57 NRF_LOG_WARNING("Err code returned in file: %s, line: %d, code %d \r\n", \
58 nrf_log_push(__FILE__), __LINE__, err_code); \
64 #define NULL_PARAM_CHECK(param) \
65 if ((param) == NULL) \
67 return NRF_ERROR_NULL; \