84 static std::string preprocess(
const std::string& inputSource);
98 void Define(
const char *iMacroName,
size_t iMacroNameLen,
99 const char *iMacroValue,
size_t iMacroValueLen);
110 void Define(
const char *iMacroName,
size_t iMacroNameLen,
long iMacroValue);
121 bool Undef(
const char *iMacroName,
size_t iMacroNameLen);
145 std::string Parse(
const std::string& inputSource);
162 typedef void(*ErrorHandlerFunc) (
163 void *iData,
int iLine,
const char *iError,
164 const char *iToken,
size_t iTokenLen);
346 bool GetValue(
const DtGLSLToken &iToken,
long &oValue,
int iLine);
398 void Error(
int iLine,
const char *iError,
const DtGLSLToken *iToken = NULL);
const char * Source
The current source text input.
Definition: DtGLSLPreprocessor.h:403
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
This is a simplistic C/C++-like preprocessor.
Definition: DtGLSLPreprocessor.h:74
bool BOL
True if we are at beginning of line.
Definition: DtGLSLPreprocessor.h:409
const char * SourceEnd
The end of the source text.
Definition: DtGLSLPreprocessor.h:405
unsigned EnableOutput
A stack of 32 booleans packed into one value :)
Definition: DtGLSLPreprocessor.h:411
A input token.
Definition: DtGLSLToken.h:29
static ErrorHandlerFunc ErrorHandler
A pointer to the preprocessor's error handler.
Definition: DtGLSLPreprocessor.h:171
void * ErrorData
User-specific storage, passed to Error()
Definition: DtGLSLPreprocessor.h:174
DtGLSLMacro * MacroList
The list of macros defined so far.
Definition: DtGLSLPreprocessor.h:413
int Line
Current line number.
Definition: DtGLSLPreprocessor.h:407
A macro definition.
Definition: DtGLSLMacro.h:22
Contains DLL export macros.