Changeset 788 for pjproject/branches/symbian/pjlib/include/pj/except.h
- Timestamp:
- Oct 24, 2006 5:13:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/symbian/pjlib/include/pj/except.h
r68 r788 238 238 #define PJ_GET_EXCEPTION() GetExceptionCode() 239 239 240 241 #elif defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0 242 243 /***************************************************************************** 244 ** 245 ** IMPLEMENTATION OF EXCEPTION USING SYMBIAN LEAVE/TRAP FRAMEWORK 246 ** 247 ****************************************************************************/ 248 249 class TPjException 250 { 251 public: 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 240 263 #else 264 241 265 /***************************************************************************** 242 266 **
Note: See TracChangeset
for help on using the changeset viewer.