Puma Reference Manual | Puma: Puma::PreAssertDirective Class Reference |
Preprocessor tree node representing an #assert directive. More...
#include <Puma/PreTreeNodes.h>
Public Member Functions | |
PreAssertDirective (PreTree *a, PreTree *p, PreTree *an) | |
Constructor. | |
PreAssertDirective (PreTree *a, PreTree *tl) | |
Constructor. | |
void | accept (PreVisitor &v) |
Part of the tree visitor pattern. |
Preprocessor tree node representing an #assert directive.
Example:
#assert OSTYPE (linux)
Constructor.
a | The #assert token. |
p | The predicate name. |
an | The answer to the predicate. |
Constructor.
a | The #assert token. |
tl | The remaining tokens of the line. |
void Puma::PreAssertDirective::accept | ( | PreVisitor & | v | ) | [inline, virtual] |
Part of the tree visitor pattern.
Calls the node visiting functions suitable for this node type.
v | The visitor object on which to call the visiting functions. |
Implements Puma::PreTreeComposite.