Ejemplo n.º 1
0
	int
main()
{
	SetDebugThrow_(debugAction_Debugger);
	SetDebugSignal_(debugAction_Debugger);
	InitializeHeap(3);
	UQDGlobals::InitializeToolbox(&qd);
	new LGrowZone(20000);
	
	CFreeAmp	theApp;

	theApp.Run();
	
	return 0;
}
void main(void) {

	// ---------------------------
	// Set Debugging options
	// ---------------------------

	DEBUG_INITIALIZE();


#ifdef DEBUG

  #ifdef CHECK_FOR_MEMORY_LEAKS
	gDebugNewFlags |= dnDontFreeBlocks;
  #endif

  #if TARGET_OS_MAC	
	if (AmIBeingMWDebugged() == true) {
		SetDebugThrow_(debugAction_Nothing);//debugAction_LowLevelDebugger);
		SetDebugSignal_(debugAction_Nothing);//debugAction_LowLevelDebugger);
		DEBUG_SET_LEVEL(DEBUG_SHOW_MOST);
		DEBUG_ENABLE_ERROR(DEBUG_TUTORIAL);
		gDebugBreakOnErrors = true;			// metronub should catch debugger traps
	} else {
		SetDebugSignal_(debugAction_Nothing);
		SetDebugThrow_(debugAction_Nothing);
		DEBUG_SET_LEVEL(DEBUG_SHOW_ERRORS);
		gDebugBreakOnErrors = false;
	}
  #else	// TARGET_OS_WIN32
	SetDebugThrow_(debugAction_Nothing);//debugAction_LowLevelDebugger);
	SetDebugSignal_(debugAction_Nothing);//debugAction_LowLevelDebugger);
	DEBUG_SET_LEVEL(DEBUG_SHOW_SOME);
	gDebugBreakOnErrors = true;		// metronub should catch debugger traps
	gUseDebugMenu = true;
  #endif	// TARGET_OS_MAC
  
#else	// non debug version
	SetDebugSignal_(debugAction_Nothing);
	SetDebugThrow_(debugAction_Nothing);
	DEBUG_SET_LEVEL(DEBUG_SHOW_ERRORS);
#endif


	// ---------------------------
	// MacOS Initialization
	// ---------------------------
  #if TARGET_OS_MAC
	InitializeHeap(14);	// Init Memory Manager: Param is num Master Ptr blocks to allocate
  #if !TARGET_API_MAC_CARBON
	UQDGlobals::InitializeToolbox(&qd);
  #endif // ! TARGET_CARBON
  #endif // TARGET_OS_MAC


	TutorialBuilderApp*	theApp = new TutorialBuilderApp();			// replace this with your App type
	theApp->Run();

	delete theApp;

	DEBUG_TERMINATE();
}