Ignore:
Timestamp:
Mar 18, 2006 12:26:55 PM (18 years ago)
Author:
bennylp
Message:

Added option to disable error message altogether, to save space footprint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/errno.c

    r321 r330  
    2727 * Message must be limited to 64 chars! 
    2828 */ 
     29 
     30#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
     31 
    2932static const struct  
    3033{ 
     
    122125}; 
    123126 
     127#endif  /* PJ_HAS_ERROR_STRING */ 
     128 
    124129 
    125130 
     
    131136{ 
    132137    pj_str_t errstr; 
     138 
     139#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
    133140 
    134141    /* See if the error comes from PortAudio. */ 
     
    185192    } 
    186193 
     194#endif  /* PJ_HAS_ERROR_STRING */ 
     195 
    187196    /* Error not found. */ 
    188197    errstr.ptr = buf; 
    189198    errstr.slen = pj_ansi_snprintf(buf, bufsize,  
    190                                    "Unknown error %d", 
     199                                   "Unknown pjmedia error %d", 
    191200                                   statcode); 
    192201 
Note: See TracChangeset for help on using the changeset viewer.