equal
deleted
inserted
replaced
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 |