mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-18 01:21:32 +00:00
Catch exceptions and write out their message
This commit is contained in:
parent
f4d5fb4c25
commit
046f5f2b2e
1 changed files with 75 additions and 67 deletions
|
@ -633,6 +633,8 @@ void AddSourceFileTimestamp(const char *timestamp)
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
if (argc != 2)
|
if (argc != 2)
|
||||||
{
|
{
|
||||||
std::cerr << "Usage: " << argv[0] << "<output filename>" << std::endl;
|
std::cerr << "Usage: " << argv[0] << "<output filename>" << std::endl;
|
||||||
|
@ -707,4 +709,10 @@ int main(int argc, char **argv)
|
||||||
//LLVMDrawers drawersAVX2("haswell");
|
//LLVMDrawers drawersAVX2("haswell");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
catch (const std::exception &e)
|
||||||
|
{
|
||||||
|
std::cerr << e.what() << std::endl;
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue