Changes in uspace/srv/net/err.h [21580dd:a64c64d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/err.h
r21580dd ra64c64d 62 62 #ifdef CONFIG_DEBUG 63 63 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;})) 65 67 66 68 #else 67 69 68 #define ERROR_OCCURRED( value ) (( ERROR_CODE = ( value )) != EOK)70 #define ERROR_OCCURRED(value) ((ERROR_CODE = (value)) != EOK) 69 71 70 72 #endif … … 74 76 */ 75 77 76 #define ERROR_PROPAGATE( value ) if( ERROR_OCCURRED( value)) return ERROR_CODE78 #define ERROR_PROPAGATE(value) if(ERROR_OCCURRED(value)) return ERROR_CODE 77 79 78 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.