| |||
| Home > Language Extensions > #assert | |||
The #assert preprocessing extensions of
System V release 4 are permitted. These enable definition and testing
of predicate names.
Such names are in a namespace distinct from all other names, including macro names.
#assert name
#assertname[(token-sequence)]
Where:
nameis a predicate name
token-sequenceis an optional sequence of tokens.
If the token sequence is omitted, is
not given a value.name
If the token sequence is included, is
given the value name.token-sequence
A predicate name defined using #assert can
be tested in a #if expression, for example:
#if #name(token-sequence)
This has the value 1 if a #assert of the
name with the
token-sequence name has appeared,
and 0 otherwise. A given predicate can be given more than one value
at a given time.token-sequence