The support for an object-like amcro within a macro-invocation
argument was also implemented at one level too high in the
grammar. Fortunately, this is a very simple fix.
$$ = _string_list_create (parser);
_string_list_append_item ($$, $1);
}
-| macro {
- $$ = _string_list_create (parser);
- }
| argument argument_word {
_string_list_append_item ($1, $2);
talloc_free ($2);
IDENTIFIER { $$ = $1; }
| TOKEN { $$ = $1; }
| FUNC_MACRO { $$ = $1; }
+| macro { $$ = xtalloc_strdup (parser, ""); }
;
--- /dev/null
+#define bar success
+#define foo(x) x
+foo(more bar)