Function error_update (o2scl)

O2scl : Function List

inline void o2scl::error_update(int &ret, int err)

Update an error value err with the value in ret.

If ret is zero, this sets ret to the value err, and if ret is nonzero this function does nothing.