diff options
author | Michal Krol <[email protected]> | 2009-09-04 10:48:51 +0200 |
---|---|---|
committer | Michal Krol <[email protected]> | 2009-09-07 10:11:58 +0200 |
commit | 0e046420e468bcb81301aa5a5e4de736a8b4844a (patch) | |
tree | 075b9f107bc2fac9b8c765c2d1833a4bca0c17b6 /src/glsl/pp/sl_pp_process.c | |
parent | c42428c787aae4bc560adf507991f1e274407135 (diff) |
glsl: Implement `pragma' preprocessor directive.
Handle `optimize(on|off)' and `debug(on|off)' pragmas.
Diffstat (limited to 'src/glsl/pp/sl_pp_process.c')
-rw-r--r-- | src/glsl/pp/sl_pp_process.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/pp/sl_pp_process.c b/src/glsl/pp/sl_pp_process.c index 117aa01688d..62b73426c5f 100644 --- a/src/glsl/pp/sl_pp_process.c +++ b/src/glsl/pp/sl_pp_process.c @@ -154,6 +154,10 @@ sl_pp_process(struct sl_pp_context *context, } else if (!strcmp(name, "error")) { sl_pp_process_error(context, input, first, last); return -1; + } else if (!strcmp(name, "pragma")) { + if (sl_pp_process_pragma(context, input, first, last, &state)) { + return -1; + } } else if (!strcmp(name, "undef")) { if (sl_pp_process_undef(context, input, first, last)) { return -1; |