]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix an issue with line numbers after #line being off-by-one
authorMikko Rasa <tdb@tdb.fi>
Mon, 1 Mar 2021 15:39:07 +0000 (17:39 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 1 Mar 2021 19:06:08 +0000 (21:06 +0200)
I had added the flag for this back in 1083ad1 but forgot to use it.

source/glsl/tokenizer.cpp

index 6ba139ff9fd92b37a459fc619e79088902d2bea2..057aa34219873970412e578a0bc7ae2dc36a4793 100644 (file)
@@ -61,6 +61,7 @@ void Tokenizer::expect(const string &token)
 void Tokenizer::set_location(const Location &loc)
 {
        location = loc;
+       suppress_line_advance = true;
 }
 
 string Tokenizer::parse_token_()