as discussed on the -dev list, introduce a macro to simplify the
authorLuigi Rizzo <rizzo@icir.org>
Fri, 24 Mar 2006 15:06:42 +0000 (15:06 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Fri, 24 Mar 2006 15:06:42 +0000 (15:06 +0000)
commitb3ad3a75562099af8fd9dff70541fffbe7d0dd02
treebd3206c23fad62af73cc7236e44c4ba9e016b843
parent574e9ae7a85e2f1165afed3a43d3198ee72d046b
as discussed on the -dev list, introduce a macro to simplify the
writing of common constructs like

chan = !ast_strlen_zero(cdr->channel) ? cdr->channel : "<unknown>";

(or the if/then/else form) into

chan = S_OR(cdr->channel, "<unknown>");

The name can be changed if we find a better (and not too long) one;
currently, it is S as String, OR as it mimics the behaviour of
the || operator, but applied to strings.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@14747 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/strings.h