summaryrefslogtreecommitdiff
path: root/src/glsl/glcpp/tests/069-repeated-argument.c
AgeCommit message (Collapse)Author
2010-07-22glcpp: Fix function-like macros with an argument used multiple times.Carl Worth
It's really hard to believe that this case has been broken, but apparently no test previously exercised it. So this commit adds such a test and fixes it by making a copy of the argument token-list before expanding it. This fix causes the following glean tests to now pass: glsl1-Preprocessor test 6 (#if 0, #define macro) glsl1-Preprocessor test 7 (multi-line #define)