This website requires JavaScript.
Explore
Help
Sign in
fdo-mirrors
/
mesa
Watch
1
Star
0
Fork
You've already forked mesa
0
mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced
2025-12-22 04:50:11 +01:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
1
ed1fe3db3b
mesa
/
glcpp
/
tests
/
033-define-func-self-compose.c
3 lines
38 B
C
Raw
Normal View
History
Unescape
Escape
Remove "unnecessary" whitespace from some tests. This whitespace was not part of anything being tested, and it introduces differences (that we don't actually care about) between the output of "gcc -E" and glcpp. Just eliminate this extra whitespace to reduce spurious test-case failures.
2010-05-20 14:05:37 -07:00
#
define foo(a) foo(2*(a))
Fix bug (and add tests) for a function-like macro defined as itself. This case worked previously, but broke in the recent rewrite of function- like macro expansion. The recursion was still terminated correctly, but any parenthesized expression after the macro name was still being swallowed even though the identifier was not being expanded as a macro. The fix is to notice earlier that the identifier is an already-expanding macro. We let the lexer know this through the classify_token function so that an already-expanding macro is lexed as an identifier, not a FUNC_MACRO.
2010-05-19 07:29:22 -07:00
foo
(
foo
(
3
)
)
Reference in a new issue
Copy permalink