mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/preproc: Append spaces between tokens in macro invocations.
This commit is contained in:
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
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user