Changes in uspace/srv/net/err.h [21580dd:aadf01e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/err.h
r21580dd raadf01e 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) (((ERROR_CODE = (value)) != EOK) && ({printf("error at %s:%d %d\n", __FILE__, __LINE__, ERROR_CODE); 1;})) 65 65 66 66 #else 67 67 68 #define ERROR_OCCURRED( value ) (( ERROR_CODE = ( value )) != EOK)68 #define ERROR_OCCURRED(value) ((ERROR_CODE = (value)) != EOK) 69 69 70 70 #endif … … 74 74 */ 75 75 76 #define ERROR_PROPAGATE( value ) if( ERROR_OCCURRED( value)) return ERROR_CODE76 #define ERROR_PROPAGATE(value) if(ERROR_OCCURRED(value)) return ERROR_CODE 77 77 78 78 #endif
Note:
See TracChangeset
for help on using the changeset viewer.