if( someRV = someFunc( some, someOther, yetMore, oneMore4, luck ) ) { // do some stuff here with some_return_value } else { // report or otherwise handle the error }