summaryrefslogtreecommitdiff
path: root/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2010-03-25 14:37:25 -0700
committerEric Anholt <eric@anholt.net>2010-03-25 14:37:25 -0700
commit7c15bb2465b2c22a7de810b399b4aa7bfa1467c0 (patch)
treeaf14d598817600217d6e90f104d2faa9dce67857 /glsl_parser_extras.cpp
parent3d303eb59fb87de2627f9ad0c1d47ddfbb1f371c (diff)
Make the standalone parser return an exit code so we can automate testing.
Diffstat (limited to 'glsl_parser_extras.cpp')
-rw-r--r--glsl_parser_extras.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/glsl_parser_extras.cpp b/glsl_parser_extras.cpp
index b774d8b..a028658 100644
--- a/glsl_parser_extras.cpp
+++ b/glsl_parser_extras.cpp
@@ -657,5 +657,5 @@ main(int argc, char **argv)
delete state.symbols;
- return 0;
+ return state.error != 0;
}