| ID | CS000882 | Creation date | April 7, 2008 |
| Platform | S60 2nd Edition | Tested on devices | |
| Category | Symbian C++ | Subcategory | Code Examples |
| Keywords (APIs, classes, methods, functions): TRAP_IGNORE, TTrap |
S60 3rd Edition supports the TRAP_IGNORE template that catches leaves and does nothing on error.
You can add TRAP_IGNORE support for older editions of the S60 platform when adding this define into a visible header:
#if !defined(EKA2)
#define TRAP_IGNORE(_s) {TInt _ignore;TTrap __t;if (__t.Trap(_ignore)==0)
{_s;TTrap::UnTrap();}}
#endif
Using this is similar to using it in the S60 3rd Edition platform environment:
TRAP_IGNORE( SomeLeavingFunctionL());
TRAP_IGNORE is supported.
No related wiki articles found