kerneltest/e32test/pccd/t_setkey.cpp
changeset 109 b3a1d9898418
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
102:ef2a444a7410 109:b3a1d9898418
    64 void SetupConsoleL();
    64 void SetupConsoleL();
    65 
    65 
    66 GLDEF_C TInt E32Main()									// main function called by E32
    66 GLDEF_C TInt E32Main()									// main function called by E32
    67     {
    67     {
    68 	CTrapCleanup* cleanup=CTrapCleanup::New();			// get clean-up stack
    68 	CTrapCleanup* cleanup=CTrapCleanup::New();			// get clean-up stack
       
    69 #if defined(_DEBUG) 
    69 	TRAPD(error,SetupConsoleL());						// more initialization, then do example
    70 	TRAPD(error,SetupConsoleL());						// more initialization, then do example
    70 	__ASSERT_DEBUG(!error,User::Panic(_L("BossTextUi"),error));
    71 	__ASSERT_DEBUG(!error,User::Panic(_L("BossTextUi"),error));
       
    72 #else
       
    73 	TRAP_IGNORE(SetupConsoleL());
       
    74 #endif
    71 	delete cleanup;										// destroy clean-up stack
    75 	delete cleanup;										// destroy clean-up stack
    72 	return 0;											// and return
    76 	return 0;											// and return
    73     }
    77     }
    74 
    78 
    75 // Determine whether we should run the full test or just mount the protected area
    79 // Determine whether we should run the full test or just mount the protected area