Commit 995fb30d authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

d3dcompiler: Add a trace to the scope push/pop functions.

parent 3d052768
...@@ -927,6 +927,7 @@ void push_scope(struct hlsl_parse_ctx *ctx) ...@@ -927,6 +927,7 @@ void push_scope(struct hlsl_parse_ctx *ctx)
ERR("Out of memory!\n"); ERR("Out of memory!\n");
return; return;
} }
TRACE("Pushing a new scope\n");
list_init(&new_scope->vars); list_init(&new_scope->vars);
list_init(&new_scope->types); list_init(&new_scope->types);
new_scope->upper = ctx->cur_scope; new_scope->upper = ctx->cur_scope;
...@@ -940,6 +941,7 @@ BOOL pop_scope(struct hlsl_parse_ctx *ctx) ...@@ -940,6 +941,7 @@ BOOL pop_scope(struct hlsl_parse_ctx *ctx)
if (!prev_scope) if (!prev_scope)
return FALSE; return FALSE;
TRACE("Popping current scope\n");
ctx->cur_scope = prev_scope; ctx->cur_scope = prev_scope;
return TRUE; return TRUE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment