Make the standalone parser return an exit code so we can automate testing.
authorEric Anholt <eric@anholt.net>
Thu, 25 Mar 2010 21:37:25 +0000 (14:37 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 25 Mar 2010 21:37:25 +0000 (14:37 -0700)
glsl_parser_extras.cpp

index b774d8b5f4ec8e44934c09a6fdd8a1b9fbbd07fc..a02865887fcf7f74897957721fd7697cbfb80852 100644 (file)
@@ -657,5 +657,5 @@ main(int argc, char **argv)
 
    delete state.symbols;
 
-   return 0;
+   return state.error != 0;
 }