Changeset 1235 for pjproject/trunk/pjlib/include/pj/except.h
- Timestamp:
- Apr 30, 2007 9:03:32 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/include/pj/except.h
r974 r1235 238 238 #define PJ_GET_EXCEPTION() GetExceptionCode() 239 239 240 241 #elif defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 242 /***************************************************************************** 243 ** 244 ** IMPLEMENTATION OF EXCEPTION USING SYMBIAN LEAVE/TRAP FRAMEWORK 245 ** 246 ****************************************************************************/ 247 248 class TPjException 249 { 250 public: 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 240 263 #else 241 264 /*****************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.