Changes in uspace/srv/net/err.h [21580dd:a64c64d] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/err.h

    r21580dd ra64c64d  
    6262#ifdef CONFIG_DEBUG
    6363
    64 #define ERROR_OCCURRED( value )         ((( ERROR_CODE = ( value )) != EOK ) && ({ printf( "error at %s:%d %d\n", __FILE__, __LINE__, ERROR_CODE ); 1; }))
     64#define ERROR_OCCURRED(value)                                                                                           \
     65        (((ERROR_CODE = (value)) != EOK)                                                                                \
     66        && ({printf("error at %s:%d %d\n", __FILE__, __LINE__, ERROR_CODE); 1;}))
    6567
    6668#else
    6769
    68 #define ERROR_OCCURRED( value )         (( ERROR_CODE = ( value )) != EOK )
     70#define ERROR_OCCURRED(value)           ((ERROR_CODE = (value)) != EOK)
    6971
    7072#endif
     
    7476 */
    7577
    76 #define ERROR_PROPAGATE( value )        if( ERROR_OCCURRED( value )) return ERROR_CODE
     78#define ERROR_PROPAGATE(value)  if(ERROR_OCCURRED(value)) return ERROR_CODE
    7779
    7880#endif
Note: See TracChangeset for help on using the changeset viewer.