summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_context.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-04 08:14:48 +0200
committerMichal Krol <[email protected]>2009-09-07 10:11:55 +0200
commitf9bd6f7152047e6230c85d76e412a5bb524e0413 (patch)
tree1d6e2b6bb1d60c1eb586961b4255b5d829b710a6 /src/glsl/pp/sl_pp_context.h
parent3dc2b5f71c2a519409becb6c1f177b5981fbacf7 (diff)
glsl: Implement `error' preprocessor directive.
Diffstat (limited to 'src/glsl/pp/sl_pp_context.h')
-rw-r--r--src/glsl/pp/sl_pp_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_context.h b/src/glsl/pp/sl_pp_context.h
index 1dbd10e30ee..65ce3e37b7b 100644
--- a/src/glsl/pp/sl_pp_context.h
+++ b/src/glsl/pp/sl_pp_context.h
@@ -33,6 +33,8 @@
#define SL_PP_MAX_IF_NESTING 64
+#define SL_PP_MAX_ERROR_MSG 1024
+
struct sl_pp_context {
char *cstr_pool;
unsigned int cstr_pool_max;
@@ -44,6 +46,8 @@ struct sl_pp_context {
unsigned int if_stack[SL_PP_MAX_IF_NESTING];
unsigned int if_ptr;
int if_value;
+
+ char error_msg[SL_PP_MAX_ERROR_MSG];
};
void