kerneltest/e32test/pccd/t_setkey.cpp
branchRCL_3
changeset 257 3e88ff8f41d5
parent 256 c1f20ce4abcf
equal deleted inserted replaced
256:c1f20ce4abcf 257:3e88ff8f41d5
    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) 
       
    70 	TRAPD(error,SetupConsoleL());						// more initialization, then do example
    69 	TRAPD(error,SetupConsoleL());						// more initialization, then do example
    71 	__ASSERT_DEBUG(!error,User::Panic(_L("BossTextUi"),error));
    70 	__ASSERT_DEBUG(!error,User::Panic(_L("BossTextUi"),error));
    72 #else
       
    73 	TRAP_IGNORE(SetupConsoleL());
       
    74 #endif
       
    75 	delete cleanup;										// destroy clean-up stack
    71 	delete cleanup;										// destroy clean-up stack
    76 	return 0;											// and return
    72 	return 0;											// and return
    77     }
    73     }
    78 
    74 
    79 // Determine whether we should run the full test or just mount the protected area
    75 // Determine whether we should run the full test or just mount the protected area