PP: Fix issue #408: # as last character in macro.
This would look ahead for a second #, for token pasting, and if not found, backup one token. This is fine, unless at the end of line, which would backup the #, rather than the look ahead.
This commit is contained in:
parent
50d4fbe4c7
commit
73d4fb5bc5
5 changed files with 35 additions and 9 deletions
2
Test/cppBad.vert
Normal file
2
Test/cppBad.vert
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define m#0#
|
||||
#if m
|
||||
Loading…
Add table
Add a link
Reference in a new issue