Skip to content
Snippets Groups Projects
Commit d4894b3d authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Is it Friday yet?

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@235229 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 473837a4
No related branches found
No related tags found
No related merge requests found
...@@ -66,6 +66,11 @@ static force_inline int attribute_pure ast_strlen_zero(const char *s) ...@@ -66,6 +66,11 @@ static force_inline int attribute_pure ast_strlen_zero(const char *s)
} }
#endif #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: /*! \brief returns the equivalent of logic or for strings:
* first one if not empty, otherwise second one. * first one if not empty, otherwise second one.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment