Standardize exit codes for samples.

Fixes #909 #910

PiperOrigin-RevId: 782951003
Change-Id: I093c0032f665bf34fecf71a75012b2b0c4c22aba
This commit is contained in:
Yuval Tassa
2025-07-14 10:14:36 -07:00
committed by Copybara-Service
parent 9a41d385c1
commit 5187a712be
4 changed files with 9 additions and 6 deletions
+3 -2
View File
@@ -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;
}