summaryrefslogtreecommitdiffstats
path: root/src/glsl/pp/sl_pp_token.h
diff options
context:
space:
mode:
authorMichal Krol <[email protected]>2009-09-04 10:48:51 +0200
committerMichal Krol <[email protected]>2009-09-07 10:11:58 +0200
commit0e046420e468bcb81301aa5a5e4de736a8b4844a (patch)
tree075b9f107bc2fac9b8c765c2d1833a4bca0c17b6 /src/glsl/pp/sl_pp_token.h
parentc42428c787aae4bc560adf507991f1e274407135 (diff)
glsl: Implement `pragma' preprocessor directive.
Handle `optimize(on|off)' and `debug(on|off)' pragmas.
Diffstat (limited to 'src/glsl/pp/sl_pp_token.h')
-rw-r--r--src/glsl/pp/sl_pp_token.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_token.h b/src/glsl/pp/sl_pp_token.h
index a53720be802..566274ea90e 100644
--- a/src/glsl/pp/sl_pp_token.h
+++ b/src/glsl/pp/sl_pp_token.h
@@ -88,6 +88,9 @@ enum sl_pp_token {
SL_PP_OTHER,
+ SL_PP_PRAGMA_OPTIMIZE,
+ SL_PP_PRAGMA_DEBUG,
+
SL_PP_EOF
};
@@ -95,6 +98,7 @@ union sl_pp_token_data {
int identifier;
int number;
char other;
+ int pragma;
};
struct sl_pp_token_info {