Pyrogenesis trunk
|
A macro definition. More...
#include <OgreGLSLPreprocessor.h>
Public Member Functions | |
Macro (const Token &iName) | |
Token | Expand (const std::vector< Token > &iArgs, std::forward_list< Macro > &iMacros) |
Expand the macro value (will not work for functions) More... | |
Public Attributes | |
Token | Name |
Macro name. More... | |
std::vector< Token > | Args |
The names of the arguments. More... | |
Token | Value |
The macro value. More... | |
Token | Body |
Unparsed macro body (keeps the whole raw unparsed macro body) More... | |
Token(* | ExpandFunc )(CPreprocessor *iParent, const std::vector< Token > &iArgs) |
A pointer to function implementation (if macro is really a func) More... | |
bool | Expanding |
true if macro expansion is in progress More... | |
A macro definition.
|
inline |
CPreprocessor::Token Ogre::CPreprocessor::Macro::Expand | ( | const std::vector< Token > & | iArgs, |
std::forward_list< Macro > & | iMacros | ||
) |
Expand the macro value (will not work for functions)
std::vector<Token> Ogre::CPreprocessor::Macro::Args |
The names of the arguments.
Token Ogre::CPreprocessor::Macro::Body |
Unparsed macro body (keeps the whole raw unparsed macro body)
Token(* Ogre::CPreprocessor::Macro::ExpandFunc) (CPreprocessor *iParent, const std::vector< Token > &iArgs) |
A pointer to function implementation (if macro is really a func)
bool Ogre::CPreprocessor::Macro::Expanding |
true if macro expansion is in progress
Token Ogre::CPreprocessor::Macro::Value |
The macro value.