#define MYQTT_CHECK_REF (   ref,
  return_value 
)
Value:
do { \
if (ref == NULL) { \
return return_value; \
} \
} while (0)

Allows to check the reference provided, and returning the return value provided.

Parameters
refThe reference to be checke for NULL.
return_valueThe return value to return in case of NULL reference.

Referenced by myqtt_async_queue_new(), and myqtt_ctx_new().