Ignore:
Timestamp:
Jun 22, 2006 6:30:13 PM (18 years ago)
Author:
bennylp
Message:

Added the error code into error messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/errno.h

    r289 r534  
    6767 * Guidelines on error message length. 
    6868 */ 
    69 #define PJ_ERR_MSG_SIZE  64 
     69#define PJ_ERR_MSG_SIZE  80 
    7070 
    7171/** 
     
    190190 
    191191/** 
     192 * Use this macro to generate error message text for your error code, 
     193 * so that they look uniformly as the rest of the libraries. 
     194 * 
     195 * @param code  The error code 
     196 * @param msg   The error test. 
     197 */ 
     198#ifndef PJ_BUILD_ERR 
     199#   define PJ_BUILD_ERR(code,msg) { code, msg " (" #code ")" } 
     200#endif 
     201 
     202 
     203/** 
    192204 * @hideinitializer 
    193205 * Unknown error has been reported. 
     
    269281 */ 
    270282#define PJ_EEOF             (PJ_ERRNO_START_STATUS + 16)/* 70016 */ 
     283/** 
     284 * @hideinitializer 
     285 * Size is too big. 
     286 */ 
     287#define PJ_ETOOBIG          (PJ_ERRNO_START_STATUS + 17)/* 70017 */ 
     288 
    271289 
    272290/** @} */   /* pj_errnum */ 
Note: See TracChangeset for help on using the changeset viewer.