Ignore:
Timestamp:
May 2, 2007 11:29:37 AM (17 years ago)
Author:
bennylp
Message:

PJSUA-LIB was ported to Symbian and added simple Symbian app. Testing follows

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/exception_symbian.cpp

    r1235 r1242  
    3535#endif  /* PJ_HAS_EXCEPTION_NAMES */ 
    3636 
    37  
    38 //#if !defined(PJ_EXCEPTION_USE_WIN32_SEH) || PJ_EXCEPTION_USE_WIN32_SEH==0 
    39 #if 0 
    40 PJ_DEF(void) pj_throw_exception_(int exception_id) 
    41 { 
    42     struct pj_exception_state_t *handler; 
    43  
    44     handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    45     if (handler == NULL) { 
    46         PJ_LOG(1,("except.c", "!!!FATAL: unhandled exception %d!\n", exception_id)); 
    47         pj_assert(handler != NULL); 
    48         /* This will crash the system! */ 
    49     } 
    50     pj_longjmp(handler->state, exception_id); 
    51 } 
    52  
    53 PJ_DEF(void) pj_push_exception_handler_(struct pj_exception_state_t *rec) 
    54 { 
    55     struct pj_exception_state_t *parent_handler = NULL; 
    56  
    57     if (thread_local_id == -1) { 
    58         pj_thread_local_alloc(&thread_local_id); 
    59         pj_assert(thread_local_id != -1); 
    60     } 
    61     parent_handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    62     rec->prev = parent_handler; 
    63     pj_thread_local_set(thread_local_id, rec); 
    64 } 
    65  
    66 PJ_DEF(void) pj_pop_exception_handler_(void) 
    67 { 
    68     struct pj_exception_state_t *handler; 
    69  
    70     handler = (pj_exception_state_t*)pj_thread_local_get(thread_local_id); 
    71     pj_assert(handler != NULL); 
    72     pj_thread_local_set(thread_local_id, handler->prev); 
    73 } 
    74 #endif 
    7537 
    7638#if defined(PJ_HAS_EXCEPTION_NAMES) && PJ_HAS_EXCEPTION_NAMES != 0 
Note: See TracChangeset for help on using the changeset viewer.