vkd3d-shader: Replace assert() with VKD3D_ASSERT() in preproc.y.

This commit is contained in:
Giovanni Mascellani 2024-08-02 10:34:46 +02:00 committed by Henri Verbeet
parent 625327653b
commit 46aec9fba8
Notes: Henri Verbeet 2024-08-05 16:15:48 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/976

View File

@ -119,7 +119,7 @@ bool preproc_add_macro(struct preproc_ctx *ctx, const struct vkd3d_shader_locati
macro->body.text = *body;
macro->body.location = *body_loc;
ret = rb_put(&ctx->macros, name, &macro->entry);
assert(!ret);
VKD3D_ASSERT(!ret);
return true;
}