summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_macro.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-06-22 09:14:14 +0200
committerMichal Krol <[email protected]>2009-09-07 10:11:48 +0200
commit2dad8ed9d68289ba25a4023da12fc5ddf6a621dd (patch)
tree28a141fb7ae18ce6402c0079d9391aecaeb5b118 /src/glsl/pp/sl_pp_macro.h
parent6a11d4150cfcdd646c17f8b365b5481c2c583208 (diff)
glsl: Centralise sl_pp_macro constructor.
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 eeb338eec45..63edd21aa24 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);