mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d-shader/preproc: Store argument values per expansion, not per macro.
This commit is contained in:
committed by
Henri Verbeet
parent
e7c4867359
commit
aa79bfa681
Notes:
Henri Verbeet
2024-10-07 17:53:30 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1147
@@ -60,6 +60,7 @@ struct preproc_expansion
|
||||
{
|
||||
struct preproc_buffer buffer;
|
||||
const struct preproc_text *text;
|
||||
struct preproc_text *arg_values;
|
||||
/* Back-pointer to the macro, if this expansion a macro body. This is
|
||||
* necessary so that argument tokens can be correctly replaced. */
|
||||
struct preproc_macro *macro;
|
||||
@@ -72,7 +73,6 @@ struct preproc_macro
|
||||
|
||||
char **arg_names;
|
||||
size_t arg_count;
|
||||
struct preproc_text *arg_values;
|
||||
|
||||
struct preproc_text body;
|
||||
};
|
||||
@@ -117,6 +117,7 @@ struct preproc_ctx
|
||||
STATE_ARGS,
|
||||
} state;
|
||||
unsigned int paren_depth;
|
||||
struct preproc_text *arg_values;
|
||||
} text_func, directive_func;
|
||||
|
||||
int current_directive;
|
||||
|
Reference in New Issue
Block a user