vkd3d-shader: Implement concatenation.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2021-01-12 16:14:20 -06:00
committed by Alexandre Julliard
parent e1a956f8f2
commit 33df515f10
3 changed files with 30 additions and 5 deletions

View File

@@ -327,6 +327,8 @@ static void free_parse_arg_names(struct parse_arg_names *args)
%token T_INCLUDE "#include"
%token T_UNDEF "#undef"
%token T_CONCAT "##"
%type <integer> expr
%type <string> body_token
%type <const_string> body_token_const
@@ -419,6 +421,10 @@ body_token_const
{
$$ = ",";
}
| T_CONCAT
{
$$ = "##";
}
directive
: T_DEFINE T_IDENTIFIER body_text T_NEWLINE