mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d-shader: Return void from hlsl_pop_scope().
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:
parent
db1765c283
commit
aa52cb10b4
@ -537,15 +537,13 @@ void hlsl_push_scope(struct hlsl_parse_ctx *ctx)
|
|||||||
list_add_tail(&ctx->scopes, &new_scope->entry);
|
list_add_tail(&ctx->scopes, &new_scope->entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL hlsl_pop_scope(struct hlsl_parse_ctx *ctx)
|
void hlsl_pop_scope(struct hlsl_parse_ctx *ctx)
|
||||||
{
|
{
|
||||||
struct hlsl_scope *prev_scope = ctx->cur_scope->upper;
|
struct hlsl_scope *prev_scope = ctx->cur_scope->upper;
|
||||||
|
|
||||||
if (!prev_scope)
|
assert(prev_scope);
|
||||||
return FALSE;
|
|
||||||
TRACE("Popping current scope.\n");
|
TRACE("Popping current scope.\n");
|
||||||
ctx->cur_scope = prev_scope;
|
ctx->cur_scope = prev_scope;
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int compare_param_hlsl_types(const struct hlsl_type *t1, const struct hlsl_type *t2)
|
static int compare_param_hlsl_types(const struct hlsl_type *t1, const struct hlsl_type *t2)
|
||||||
|
@ -646,7 +646,7 @@ void hlsl_report_message(const struct source_location loc,
|
|||||||
enum hlsl_error_level level, const char *fmt, ...) VKD3D_PRINTF_FUNC(3,4) DECLSPEC_HIDDEN;
|
enum hlsl_error_level level, const char *fmt, ...) VKD3D_PRINTF_FUNC(3,4) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
void hlsl_push_scope(struct hlsl_parse_ctx *ctx) DECLSPEC_HIDDEN;
|
void hlsl_push_scope(struct hlsl_parse_ctx *ctx) DECLSPEC_HIDDEN;
|
||||||
BOOL hlsl_pop_scope(struct hlsl_parse_ctx *ctx) DECLSPEC_HIDDEN;
|
void hlsl_pop_scope(struct hlsl_parse_ctx *ctx) DECLSPEC_HIDDEN;
|
||||||
|
|
||||||
struct hlsl_type *hlsl_type_clone(struct hlsl_type *old, unsigned int default_majority) DECLSPEC_HIDDEN;
|
struct hlsl_type *hlsl_type_clone(struct hlsl_type *old, unsigned int default_majority) DECLSPEC_HIDDEN;
|
||||||
BOOL hlsl_type_compare(const struct hlsl_type *t1, const struct hlsl_type *t2) DECLSPEC_HIDDEN;
|
BOOL hlsl_type_compare(const struct hlsl_type *t1, const struct hlsl_type *t2) DECLSPEC_HIDDEN;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user