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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/glsl/pp/sl_pp_macro.h b/src/glsl/pp/sl_pp_macro.h
index eeb338eec4..63edd21aa2 100644
--- a/src/glsl/pp/sl_pp_macro.h
+++ b/src/glsl/pp/sl_pp_macro.h
@@ -38,12 +38,15 @@ struct sl_pp_macro_formal_arg {
struct sl_pp_macro {
int name;
- int num_args;
+ int num_args; /* -1 means no args, 0 means `()' */
struct sl_pp_macro_formal_arg *arg;
struct sl_pp_token_info *body;
struct sl_pp_macro *next;
};
+struct sl_pp_macro *
+sl_pp_macro_new(void);
+
void
sl_pp_macro_free(struct sl_pp_macro *macro);