https://github.com/shader-slang/slang
Revision 411b24361e31503171b2940ebd44dc436550a716 authored by Tim Foley on 19 June 2017, 20:20:53 UTC, committed by Tim Foley on 19 June 2017, 20:20:53 UTC
If the line number for the next token is within a small range, then go ahead and output newlines to get caught up, rather than emit a `#line` directive. This saves a small amount of clutter, and in the particular case where the number of lines is 1, it stops our current behavior of putting a directive on each line.
1 parent 838e833
History
Tip revision: 411b24361e31503171b2940ebd44dc436550a716 authored by Tim Foley on 19 June 2017, 20:20:53 UTC
Don't emit redundant `#line` directives
Tip revision: 411b243
File Mode Size
build
examples
external
source
tests
tools
.gitignore -rw-r--r-- 247 bytes
.gitmodules -rw-r--r-- 107 bytes
LICENSE -rw-r--r-- 1.1 KB
README.md -rw-r--r-- 1.5 KB
appveyor.yml -rw-r--r-- 1.5 KB
slang.h -rw-r--r-- 29.1 KB
slang.sln -rw-r--r-- 6.3 KB
test.bat -rw-r--r-- 1.4 KB

README.md

back to top