Skip to content

Preprocessing line number handling#38

Merged
johnkslang merged 2 commits intoKhronosGroup:masterfrom
google:preprocessing-line-number
Jul 24, 2015
Merged

Preprocessing line number handling#38
johnkslang merged 2 commits intoKhronosGroup:masterfrom
google:preprocessing-line-number

Conversation

@antiagainst
Copy link
Copy Markdown
Contributor

These two patches fix the line number handling in preprocessing. It's the preliminary work mentioned in Issue #37.

SourceLineSynchronizer is added for keeping track of the last
line number and output newlines appropriately if we switch to
a new line in the preprocessor.
Everytime we switch to a new source string, the line are reset.
We need to reset lastLine and also output newlines appropriately.
@antiagainst antiagainst changed the title Preprocessing line number Preprocessing line number handling Jul 23, 2015
johnkslang added a commit that referenced this pull request Jul 24, 2015
@johnkslang johnkslang merged commit b159bd5 into KhronosGroup:master Jul 24, 2015
@antiagainst antiagainst deleted the preprocessing-line-number branch July 24, 2015 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants