view EXCLUDE/GLTSF/src/Main.cpp @ 4740:abf528de6d2e

Added condition check macros to make the code clear and easier to debug. Updated code to use macros.
author dewyatt
date Sun, 27 Jun 2010 22:03:08 -0400
parents 0c7c67d4e6ee
children
line wrap: on
line source

#include "App.hpp"
#include <stdexcept>

int main(int argc, char *argv[])
{
	int Result = EXIT_SUCCESS;
	try
	{
		App theApp;
		theApp.Run();
	}
	catch (const std::exception& e)
	{
		printf("Error: %s\n", e.what());
		Result = EXIT_FAILURE;
	}
	catch (...)
	{
		printf("Unhandled exception\n");
		Result = EXIT_FAILURE;
	}
	system("PAUSE");
	return Result;
}