Standardize exit codes for samples.
Fixes #909 #910 PiperOrigin-RevId: 782951003 Change-Id: I093c0032f665bf34fecf71a75012b2b0c4c22aba
This commit is contained in:
committed by
Copybara-Service
parent
9a41d385c1
commit
5187a712be
+3
-2
@@ -13,6 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
#include <GLFW/glfw3.h>
|
||||
@@ -104,7 +105,7 @@ int main(int argc, const char** argv) {
|
||||
// check command-line arguments
|
||||
if (argc!=2) {
|
||||
std::printf(" USAGE: basic modelfile\n");
|
||||
return 0;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
// load and compile model
|
||||
@@ -186,5 +187,5 @@ int main(int argc, const char** argv) {
|
||||
glfwTerminate();
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user