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

su_msg_is_non_null

Added su_msg_is_non_null().

darcs-hash:20050907220502-65a35-b29d06775cda5f8f02167ccd10fc3ae3011d3dfe.gz
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? */
#if SU_HAVE_INLINE
static SU_INLINE
int su_msg_is_non_null(su_msg_r msg)
{
return *msg != NULL;
}
#else
#define su_msg_is_non_null(msg) ((*msg) != NULL)
#endif
/** 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