int fluke_ref_compare(fluke_ref_t *ref1, fluke_ref_t *ref2);
This function determines if the given references are equivalent, returning true (nonzero) if they refer to the same Fluke object, or false if they do not. A null reference is never equivalent to any non-null reference; however, comparing two null references returns an undefined result.
- ref1
- One reference object to compare.
- ref2
- The other reference object to compare.
Returns non-zero if the references are equivalent, zero if not.
If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
- NO_OBJECT
- ref1 or ref2 does not point to an active object.
- NOT_REF
- The object pointed to by ref1 or ref2 is not a reference object.
- INVALID_OBJECT
- The state of ref1 or ref2 has become invalid.