Puma Reference Manual Puma: Puma::PreErrorDirective Class Reference



Puma::PreErrorDirective Class Reference

Preprocessor tree node representing an #error directive. More...

#include <Puma/PreTreeNodes.h>

Inherits Puma::PreTreeComposite.

List of all members.

Public Member Functions

 PreErrorDirective (PreTree *e, PreTree *m)
 Constructor.
void accept (PreVisitor &v)
 Part of the tree visitor pattern.

Detailed Description

Preprocessor tree node representing an #error directive.

Example:

 #error This is an error. 

Constructor & Destructor Documentation

Puma::PreErrorDirective::PreErrorDirective ( PreTree e,
PreTree m 
) [inline]

Constructor.

Parameters:
e The #error token.
m The error message.

Member Function Documentation

void Puma::PreErrorDirective::accept ( PreVisitor v  )  [inline, virtual]

Part of the tree visitor pattern.

Calls the node visiting functions suitable for this node type.

Parameters:
v The visitor object on which to call the visiting functions.

Implements Puma::PreTreeComposite.




Puma Reference Manual. Created on 18 Sep 2009.