Changeset 2878 for pjproject/trunk/pjlib/src/pj/except.c
- Timestamp:
- Aug 14, 2009 10:41:00 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/except.c
r2394 r2878 51 51 /* This will crash the system! */ 52 52 } 53 pj_pop_exception_handler_(handler); 53 54 pj_longjmp(handler->state, exception_id); 54 55 } … … 87 88 } 88 89 89 PJ_DEF(void) pj_pop_exception_handler_( void)90 PJ_DEF(void) pj_pop_exception_handler_(struct pj_exception_state_t *rec) 90 91 { 91 92 struct pj_exception_state_t *handler; … … 93 94 handler = (struct pj_exception_state_t *) 94 95 pj_thread_local_get(thread_local_id); 95 pj_assert(handler != NULL); 96 pj_thread_local_set(thread_local_id, handler->prev); 96 if (handler && handler==rec) { 97 pj_thread_local_set(thread_local_id, handler->prev); 98 } 97 99 } 98 100 #endif
Note: See TracChangeset
for help on using the changeset viewer.