Ignore:
Timestamp:
Oct 24, 2006 5:13:30 PM (18 years ago)
Author:
bennylp
Message:

Bulk of PJLIB implementations on Symbian: exception framework, errno, OS core, Unicode, pool backend, log (to console), socket, address resolution, select, etc. IOQueue still doesn't work.

File:
1 edited

Legend:

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

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