mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added kExitSuccess/Failure constants.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user