Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 4742 → Rev 4743

/branches/network/uspace/srv/net/err.h
61,11 → 61,11
*/
#ifdef CONFIG_DEBUG
 
#define ERROR_OCCURRED( value ) (( ERROR_CODE = ( value )) != EOK )
#define ERROR_OCCURRED( value ) ((( ERROR_CODE = ( value )) != EOK ) && ({ printf( "error at %s:%d %d\n", __FILE__, __LINE__, ERROR_CODE ); 1; }))
 
#else
 
#define ERROR_OCCURRED( value ) ((( ERROR_CODE = ( value )) != EOK ) && ({ printf( "error at %s:%d %d\n", __FILE__, __LINE__, ERROR_CODE ); 1; }))
#define ERROR_OCCURRED( value ) (( ERROR_CODE = ( value )) != EOK )
 
#endif