diff options
author | Michal Krol <[email protected]> | 2009-06-22 09:05:29 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:47 +0200 |
commit | 6a11d4150cfcdd646c17f8b365b5481c2c583208 (patch) | |
tree | 9037f4dc93262d269ba126788a0d5691bb10b4cd /src/glsl/pp/sl_pp_macro.h | |
parent | 5e8e3cddae9b2797cfa525c643c701debe2f4c04 (diff) |
glsl: Implement macro expansion.
Diffstat (limited to 'src/glsl/pp/sl_pp_macro.h')
-rw-r--r-- | src/glsl/pp/sl_pp_macro.h | 9 |
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 4ebbff55906..eeb338eec45 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 */ |