diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-15 23:51:05 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-15 23:51:05 +0000 |
commit | a7ea4800e321ad59145c7beefd6aba7ea4e699a6 (patch) | |
tree | 0138b03ac6eeea8ba79a7ddf60a0135eeb2ef1e1 /include | |
parent | 1a89b2725457ef94d26aca6e5b7c90da82d44519 (diff) |
Is it Friday yet?
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@235229 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/strings.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index ae58af3ef..0e904ac59 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. */ |