VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::CPreprocessor::Macro Class Reference

A macro definition. More...

Public Member Functions

 Macro (const Token &iName)
 ~Macro ()
Token Expand (int iNumArgs, Token *iArgs, Macro *iMacros)
 Expand the macro value (will not work for functions)

Public Attributes

Token Name
 Macro name.
int NumArgs
 Number of arguments.
TokenArgs
 The names of the arguments.
Token Value
 The macro value.
Token Body
 Unparsed macro body (keeps the whole raw unparsed macro body)
MacroNext
 Next macro in chained list.
Token(* ExpandFunc )(CPreprocessor *iParent, int iNumArgs, Token *iArgs)
 A pointer to function implementation (if macro is really a func)
bool Expanding
 true if macro expansion is in progress

Detailed Description

A macro definition.

Constructor & Destructor Documentation

makVrv::CPreprocessor::Macro::Macro ( const Token iName)
inline
makVrv::CPreprocessor::Macro::~Macro ( )
inline

References Args, and Next.

Member Function Documentation

Token makVrv::CPreprocessor::Macro::Expand ( int  iNumArgs,
Token iArgs,
Macro iMacros 
)

Expand the macro value (will not work for functions)

Member Data Documentation

Token makVrv::CPreprocessor::Macro::Name

Macro name.

int makVrv::CPreprocessor::Macro::NumArgs

Number of arguments.

Token* makVrv::CPreprocessor::Macro::Args

The names of the arguments.

Referenced by ~Macro().

Token makVrv::CPreprocessor::Macro::Value

The macro value.

Token makVrv::CPreprocessor::Macro::Body

Unparsed macro body (keeps the whole raw unparsed macro body)

Macro* makVrv::CPreprocessor::Macro::Next

Next macro in chained list.

Referenced by ~Macro().

Token(* makVrv::CPreprocessor::Macro::ExpandFunc)(CPreprocessor *iParent, int iNumArgs, Token *iArgs)

A pointer to function implementation (if macro is really a func)

bool makVrv::CPreprocessor::Macro::Expanding

true if macro expansion is in progress


The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)