Checks if the specified integral value, which is supposed to be a chsvlib error code, which is cast to the int type, corresponds to the specified error condition.
- Parameters
-
valcode | is an integral error code that is supposed to be equal to the values of the chsvlib_error enumeration (which are equal to chsvlib error codes of the Error handling). Otherwise, the error code would be considered unknown. |
cond | is an object of type error_condition to be matched with the specified integral error code. |
- Returns
- The function returns
true
if the error code is equivalent to the error condition object, or false
otherwise.