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 * | Args |
| The names of the arguments. | |
| Token | Body |
| Unparsed macro body (keeps the whole raw unparsed macro body) | |
| 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 | |
| Token | Name |
| Macro name. | |
| Macro * | Next |
| Next macro in chained list. | |
| int | NumArgs |
| Number of arguments. | |
| Token | Value |
| The macro value. | |
A macro definition.
Definition at line 173 of file src/GLSL/include/OgreGLSLPreprocessor.h.
| Ogre::GLSL::CPreprocessor::Macro::Macro | ( | const Token & | iName | ) |
Definition at line 193 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Definition at line 198 of file src/GLSL/include/OgreGLSLPreprocessor.h.
| Token Ogre::GLSL::CPreprocessor::Macro::Expand | ( | int | iNumArgs, |
| Token * | iArgs, | ||
| Macro * | iMacros | ||
| ) |
Expand the macro value (will not work for functions)
The names of the arguments.
Definition at line 181 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Referenced by ~Macro().
Unparsed macro body (keeps the whole raw unparsed macro body)
Definition at line 185 of file src/GLSL/include/OgreGLSLPreprocessor.h.
| Token(* Ogre::GLSL::CPreprocessor::Macro::ExpandFunc)(CPreprocessor *iParent, int iNumArgs, Token *iArgs) |
A pointer to function implementation (if macro is really a func)
Definition at line 189 of file src/GLSL/include/OgreGLSLPreprocessor.h.
true if macro expansion is in progress
Definition at line 191 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Macro name.
Definition at line 177 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Next macro in chained list.
Definition at line 187 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Referenced by ~Macro().
Number of arguments.
Definition at line 179 of file src/GLSL/include/OgreGLSLPreprocessor.h.
The macro value.
Definition at line 183 of file src/GLSL/include/OgreGLSLPreprocessor.h.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:41:48