Changeset 858fc90 in mainline for uspace/srv/net/err.h
- Timestamp:
- 2010-03-15T19:35:25Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6092b56e
- Parents:
- 92307f1 (diff), 4684368 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/err.h
r92307f1 r858fc90 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.