ObjFW  Diff

Differences From Artifact [f60148ac98]:

To Artifact [17cc5dfe7d]:


625
626
627
628
629
630
631
632
633

634
635
636
637
638
639
640
641
642
643
644
645
646
647
625
626
627
628
629
630
631


632







633
634
635
636
637
638
639







-
-
+
-
-
-
-
-
-
-








/*!
 * @brief Returns whether the specified object is a tagged pointer.
 *
 * @param object The object to inspect
 * @return Whether the specified object is a tagged pointer
 */
static inline bool
object_isTaggedPointer(id _Nullable object)
extern bool object_isTaggedPointer(id _Nullable object);
{
	uintptr_t pointer = (uintptr_t)object;

	return pointer & 1;
}

extern Class _Nullable object_getTaggedPointerClass(id _Nonnull object);

/*!
 * @brief Returns the value of the specified tagged pointer.
 *
 * @param object The object whose tagged pointer value should be returned
 * @return The tagged pointer value of the object
 */