summaryrefslogtreecommitdiff
path: root/src/glsl/pp/sl_pp_macro.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glsl/pp/sl_pp_macro.h')
-rw-r--r--src/glsl/pp/sl_pp_macro.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_macro.h b/src/glsl/pp/sl_pp_macro.h
index 4ebbff5590..eeb338eec4 100644
--- a/src/glsl/pp/sl_pp_macro.h
+++ b/src/glsl/pp/sl_pp_macro.h
@@ -38,13 +38,20 @@ struct sl_pp_macro_formal_arg {
struct sl_pp_macro {
int name;
+ int num_args;
struct sl_pp_macro_formal_arg *arg;
struct sl_pp_token_info *body;
- unsigned int body_len;
struct sl_pp_macro *next;
};
void
sl_pp_macro_free(struct sl_pp_macro *macro);
+int
+sl_pp_macro_expand(struct sl_pp_context *context,
+ const struct sl_pp_token_info *input,
+ unsigned int *pi,
+ struct sl_pp_macro *local,
+ struct sl_pp_process_state *state);
+
#endif /* SL_PP_MACRO_H */