diff options
| author | 2025-10-23 17:33:32 +0200 | |
|---|---|---|
| committer | 2025-10-23 17:33:32 +0200 | |
| commit | c09f8981961ad8b0d2006104857122f381db13c7 (patch) | |
| tree | 543a849343f18ddcf450a14a8447dc5358f75623 /c | |
| parent | 542412a0d3b7a0a3abab00fed3bb4f209f0808f6 (diff) | |
lex: fix expansion for fn like macros passed as macro arguments
Diffstat (limited to 'c')
| -rw-r--r-- | c/lex.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -998,7 +998,7 @@ tryexpand(struct lexer *lx, struct token *tk) tk2[0] = *tk_, tk2[1] = tk; noexpandmac = 0; pushmacstk(lx, &span, &(struct macrostack) { - .rlist = { tk2, 2 }, + .rlist = { tk2, 2 - (tk.t == TKEOF) }, .exspan = span.ex, .macno = macidx, }); |