Added kExitSuccess/Failure constants.

This commit is contained in:
Branimir Karadžić
2017-06-20 21:42:23 -07:00
parent aaaf47242c
commit b83204d516
4 changed files with 32 additions and 32 deletions

View File

@@ -423,27 +423,27 @@ int main(int _argc, const char* _argv[])
, BGFX_GEOMETRYC_VERSION_MINOR
, BGFX_API_VERSION
);
return EXIT_SUCCESS;
return bx::kExitSuccess;
}
if (cmdLine.hasArg('h', "help") )
{
help();
return EXIT_FAILURE;
return bx::kExitFailure;
}
const char* filePath = cmdLine.findOption('f');
if (NULL == filePath)
{
help("Input file name must be specified.");
return EXIT_FAILURE;
return bx::kExitFailure;
}
const char* outFilePath = cmdLine.findOption('o');
if (NULL == outFilePath)
{
help("Output file name must be specified.");
return EXIT_FAILURE;
return bx::kExitFailure;
}
float scale = 1.0f;
@@ -473,7 +473,7 @@ int main(int _argc, const char* _argv[])
if (NULL == file)
{
printf("Unable to open input file '%s'.", filePath);
exit(EXIT_FAILURE);
exit(bx::kExitFailure);
}
int64_t parseElapsed = -bx::getHPCounter();
@@ -845,7 +845,7 @@ int main(int _argc, const char* _argv[])
if (!bx::open(&writer, outFilePath) )
{
printf("Unable to open output file '%s'.", outFilePath);
exit(EXIT_FAILURE);
exit(bx::kExitFailure);
}
Primitive prim;
@@ -1062,5 +1062,5 @@ int main(int _argc, const char* _argv[])
, numIndices
);
return EXIT_SUCCESS;
return bx::kExitSuccess;
}