view EXCLUDE/GLTSF/src/Main.cpp @ 4754:2072fed2f583

Added SDL_utf8strlcpy to copy at UTF-8 character boundaries. Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
author dewyatt
date Tue, 13 Jul 2010 15:05:45 -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;
}