Better SourcePos reporting for gathers/scatters

This commit is contained in:
Matt Pharr
2011-11-16 16:22:51 -08:00
parent f5a21d96a1
commit 068ea3e4c4
4 changed files with 41 additions and 20 deletions

3
ispc.h
View File

@@ -104,7 +104,8 @@ struct VariableDeclaration;
lexing code). Both lines and columns are counted starting from one.
*/
struct SourcePos {
SourcePos(const char *n = NULL, int l = 0, int c = 0);
SourcePos(const char *n = NULL, int fl = 0, int fc = 0,
int ll = 0, int lc = 0);
const char *name;
int first_line;