[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
assert (0);
when an impossible condition is
detected, i.e., for an impossible default:
case in a
switch
statement.
switch
statements
default
case in a switch
, even if it is a
failing assertion or an empty statement.
goto
targets and case
s, must be followed by
a statement, even if that is an empty statement. This is required by
the ANSI standard.
for (;;)
.
goto
goto
, two of them related:
error:
. The code so labeled is only
executed to handle an error or exception.
done:
. The labeled code is executed
whether the function is successful or not. Most functions of this type
have a Boolean local variable named success
used to indicate
whether the function's work was successful.
switch
.
Many error recovery actions of the first two types can be avoided by use of pools. The third type is rarely necessary.
if
if
/else
construct, put the common case after the
if
, not the else
.
do { ... } while (0)
to allow them to work properly in all
syntactic circumstances.
[ << ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |