Commit 15f14f20 authored by Pekka Pessi's avatar Pekka Pessi
Browse files


Added su_msg_is_non_null().

parent ba81dd31
......@@ -294,6 +294,17 @@ typedef struct su_msg_s su_msg_t;
/** Message reference type. */
typedef su_msg_t *su_msg_r[1];
/** Does reference contain a message? */
static SU_INLINE
int su_msg_is_non_null(su_msg_r msg)
return *msg != NULL;
#define su_msg_is_non_null(msg) ((*msg) != NULL)
/** Initializer for a message reference. @HI */
#define SU_MSG_R_INIT { NULL }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment