mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 06:10:13 +01:00
Fix bug (and add test) for a function-like-macro appearing as a non-macro.
That is, when a function-like macro appears in the content without parentheses it should be accepted and passed on through, (previously the parser was regarding this as a syntax error).
This commit is contained in:
parent
420d05a15b
commit
acf87bc034
2 changed files with 6 additions and 0 deletions
|
|
@ -133,6 +133,10 @@ content:
|
|||
printf ("%s", $1);
|
||||
talloc_free ($1);
|
||||
}
|
||||
| FUNC_MACRO {
|
||||
printf ("%s", $1);
|
||||
talloc_free ($1);
|
||||
}
|
||||
| macro {
|
||||
_print_string_list ($1);
|
||||
}
|
||||
|
|
|
|||
2
tests/025-func-macro-as-non-macro.c
Normal file
2
tests/025-func-macro-as-non-macro.c
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#define foo(bar) bar
|
||||
foo
|
||||
Loading…
Add table
Reference in a new issue