vkd3d-shader/preproc: Append spaces between tokens in macro invocations.

This commit is contained in:
Zebediah Figura 2023-07-29 18:17:35 -05:00 committed by Alexandre Julliard
parent 250a24bd3f
commit b4bb3931c5
Notes: Alexandre Julliard 2023-08-02 21:24:27 +09:00
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/291
2 changed files with 9 additions and 0 deletions

View File

@ -746,6 +746,9 @@ int yylex(YYSTYPE *lval, YYLTYPE *lloc, yyscan_t scanner)
if (current_arg)
preproc_text_add(current_arg, text);
}
if (current_arg)
preproc_text_add(current_arg, " ");
break;
}
}

View File

@ -311,3 +311,9 @@ apple # KEY
#define KEY(a) KEY2(a)
KEY(pa)
[preproc]
#define KEY2(x) x
#define KEY KEY2(fa il)
KEY
pass