#define nopoll_return_if_fail (   ctx,
  expr 
)    if (!(expr)) {__nopoll_log (ctx, __function_name__, __file__, __line__, NOPOLL_LEVEL_CRITICAL, "Expresion '%s' have failed at %s (%s:%d)", #expr, __NOPOLL_PRETTY_FUNCTION__, __NOPOLL_FILE__, __NOPOLL_LINE__); return;}

Allows to check a condition and return if it is not meet.

Parameters
ctxThe context where the operation will take place.
exprThe expresion to check.

Referenced by nopoll_ctx_set_on_accept(), nopoll_ctx_set_on_msg(), nopoll_ctx_set_on_open(), nopoll_ctx_set_on_ready(), nopoll_ctx_set_protocol_version(), nopoll_ctx_unref(), and nopoll_log_set_handler().