git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@25512
e7fa87d3-cd2b-0410-9028-
fcbf551c1848
// source have to figure out how to create revision.h just to get a build\r
// going. However, if it is not updated, it can be a version behind.\r
\r
-#define GLSLANG_REVISION "25411"\r
-#define GLSLANG_DATE "2014/02/18 19:47:20"\r
+#define GLSLANG_REVISION "25511"\r
+#define GLSLANG_DATE "2014/02/24 14:16:19"\r
//
void TAllocation::checkGuardBlock(unsigned char* blockMem, unsigned char val, const char* locText) const
{
+#ifdef GUARD_BLOCKS
for (int x = 0; x < guardBlockSize; x++) {
if (blockMem[x] != val) {
const int maxSize = 80;
assert(0 && "PoolAlloc: Damage in guard block");
}
}
+#else
+ assert(guardBlockSize == 0);
+#endif
}
do {
--currentSource;
} while (currentSource > 0 && lengths[currentSource] == 0);
- currentChar = lengths[currentSource] - 1;
- if (currentChar < 0)
+ if (lengths[currentSource] == 0) {
+ // set to 0 if we've backed up to the start of an empty string
currentChar = 0;
+ } else
+ currentChar = lengths[currentSource] - 1;
}
if (peek() == '\n')
--loc[currentSource].line;