예제 #1
0
int win32_main( int argc, char ** argv )
{
	SetThreadName( "Main Thread" );
	StartCrashHandler();

	THREAD_TRY_EXECUTION
	{
		sMaster.Run( argc, argv );
	}
	THREAD_HANDLE_CRASH;
	exit( 0 );
	return 0;
}
예제 #2
0
int win32_main(int argc, char** argv)
{
	SetThreadName("Main Thread");

	StartCrashHandler();

	//Andy: windows only, helps fight heap allocation on allocations lower then 16KB
	unsigned long arg = 2;
	HeapSetInformation(GetProcessHeap(), HeapCompatibilityInformation, &arg, sizeof(arg));

	THREAD_TRY_EXECUTION
	sMaster.Run(argc, argv);
	THREAD_HANDLE_CRASH

	exit(0);
}