Skip to content
Snippets Groups Projects
Commit 6520fb15 authored by Elizabeth Figura's avatar Elizabeth Figura Committed by Alexandre Julliard
Browse files

vkd3d-shader: Implement the parenthetical operator in #if directives.

parent e15b884e
No related branches found
No related tags found
No related merge requests found
......@@ -243,8 +243,6 @@ XFAIL_TESTS = \
tests/hlsl-vector-indexing.shader_test \
tests/hlsl-vector-indexing-uniform.shader_test \
tests/math.shader_test \
tests/preproc-if-expr.shader_test \
tests/preproc-macro.shader_test \
tests/swizzle-0.shader_test \
tests/swizzle-1.shader_test \
tests/swizzle-2.shader_test \
......
......@@ -693,6 +693,10 @@ primary_expr
$$ = !!preproc_find_macro(ctx, $3);
vkd3d_free($3);
}
| '(' expr ')'
{
$$ = $2;
}
unary_expr
: primary_expr
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment