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

vkd3d-shader: Treat undefined identifiers as equal to 0 in #if directives.

parent d31f2881
No related branches found
No related tags found
No related merge requests found
......@@ -588,6 +588,11 @@ expr
$$ = preproc_parse_integer($1);
vkd3d_free($1);
}
| T_IDENTIFIER
{
$$ = 0;
vkd3d_free($1);
}
| T_DEFINED T_IDENTIFIER
{
$$ = !!preproc_find_macro(ctx, $2);
......
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