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/pjlib-util/src/pjlib-util/errno.c

    r315 r330  
    2626 * Message must be limited to 64 chars! 
    2727 */ 
     28#if defined(PJ_HAS_ERROR_STRING) && PJ_HAS_ERROR_STRING!=0 
    2829static const struct  
    2930{ 
     
    4849    { PJLIB_UTIL_EINXML,            "Invalid XML message" }, 
    4950}; 
    50  
     51#endif  /* PJ_HAS_ERROR_STRING */ 
    5152 
    5253 
     
    5859{ 
    5960    pj_str_t errstr; 
     61 
     62#if defined(PJ_HAS_ERROR_STRING) && (PJ_HAS_ERROR_STRING != 0) 
    6063 
    6164    if (statcode >= PJLIB_UTIL_ERRNO_START &&  
     
    97100    } 
    98101 
     102#endif  /* PJ_HAS_ERROR_STRING */ 
     103 
     104 
    99105    /* Error not found. */ 
    100106    errstr.ptr = buf; 
    101107    errstr.slen = pj_ansi_snprintf(buf, bufsize,  
    102                                    "Unknown error %d", 
     108                                   "Unknown pjlib-util error %d", 
    103109                                   statcode); 
    104110 
Note: See TracChangeset for help on using the changeset viewer.