summaryrefslogtreecommitdiffstats
path: root/source/slang/compiler.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-19 13:20:53 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-19 13:20:53 -0700
commit411b24361e31503171b2940ebd44dc436550a716 (patch)
treeb8f797ff5869d4130a35ac09fafd6f59bd2fa3e7 /source/slang/compiler.cpp
parent838e8331da24744948539c12d2a8edcd9c594ee5 (diff)
Don't emit redundant `#line` directives
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.
Diffstat (limited to 'source/slang/compiler.cpp')
0 files changed, 0 insertions, 0 deletions