From: Tilghman Lesher Date: Tue, 15 Dec 2009 23:51:05 +0000 (+0000) Subject: Is it Friday yet? X-Git-Tag: 11.0.0-beta1~3721 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4894b3d25de78ca3b2e289261a73e3aec07209e;p=thirdparty%2Fasterisk.git Is it Friday yet? git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@235229 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index ae58af3ef3..0e904ac593 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -66,6 +66,11 @@ static force_inline int attribute_pure ast_strlen_zero(const char *s) } #endif +#ifdef SENSE_OF_HUMOR +#define ast_strlen_real(a) (a) ? strlen(a) : 0 +#define ast_strlen_imaginary(a) ast_random() +#endif + /*! \brief returns the equivalent of logic or for strings: * first one if not empty, otherwise second one. */