84 static std::string preprocess(
const std::string& inputSource);
109 void Define(
const char *iMacroName,
size_t iMacroNameLen,
110 const char *iMacroValue,
size_t iMacroValueLen);
121 void Define(
const char *iMacroName,
size_t iMacroNameLen,
long iMacroValue);
132 bool Undef(
const char *iMacroName,
size_t iMacroNameLen);
156 std::string Parse(
const std::string& inputSource);
173 typedef void(*ErrorHandlerFunc) (
174 void *iData,
int iLine,
const char *iError,
175 const char *iToken,
size_t iTokenLen);
357 bool GetValue(
const DtGLSLToken &iToken,
long &oValue,
int iLine);
409 void Error(
int iLine,
const char *iError,
const DtGLSLToken *iToken = NULL);
const char * Source
The current source text input.
Definition: DtGLSLPreprocessor.h:414
#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:420
const char * SourceEnd
The end of the source text.
Definition: DtGLSLPreprocessor.h:416
unsigned EnableOutput
A stack of 32 booleans packed into one value :)
Definition: DtGLSLPreprocessor.h:422
A input token.
Definition: DtGLSLToken.h:29
static ErrorHandlerFunc ErrorHandler
A pointer to the preprocessor's error handler.
Definition: DtGLSLPreprocessor.h:182
void * ErrorData
User-specific storage, passed to Error()
Definition: DtGLSLPreprocessor.h:185
DtGLSLMacro * MacroList
The list of macros defined so far.
Definition: DtGLSLPreprocessor.h:424
int Line
Current line number.
Definition: DtGLSLPreprocessor.h:418
A macro definition.
Definition: DtGLSLMacro.h:22
Contains DLL export macros.