Ignore:
Timestamp:
Apr 30, 2007 9:03:32 PM (14 years ago)
Author:
bennylp
Message:

Initial Symbian integration to trunk for pjlib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/except.h

    r974 r1235  
    238238#define PJ_GET_EXCEPTION()  GetExceptionCode() 
    239239 
     240 
     241#elif defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 
     242/***************************************************************************** 
     243 ** 
     244 ** IMPLEMENTATION OF EXCEPTION USING SYMBIAN LEAVE/TRAP FRAMEWORK 
     245 ** 
     246 ****************************************************************************/ 
     247 
     248class TPjException 
     249{ 
     250public: 
     251    int code_; 
     252}; 
     253 
     254#define PJ_USE_EXCEPTION 
     255#define PJ_TRY                  try 
     256//#define PJ_CATCH(id)           
     257#define PJ_CATCH_ANY            catch (const TPjException & pj_excp_) 
     258#define PJ_END 
     259#define PJ_THROW(x_id)          do { TPjException e; e.code_=x_id; throw e;} \ 
     260                                while (0) 
     261#define PJ_GET_EXCEPTION()      pj_excp_.code_ 
     262 
    240263#else 
    241264/***************************************************************************** 
Note: See TracChangeset for help on using the changeset viewer.