gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to correctly determine a small object?


From: Stefan Bidi
Subject: Re: How to correctly determine a small object?
Date: Fri, 7 Jun 2013 10:41:15 -0500

The CF_IS_OBJC() macro will correctly identify small objects.  The function objc_getClass() will return a valid ObjC class that isn't toll-free bridged and so CF_IS_OBJC() should return true.  This should work.


On Fri, Jun 7, 2013 at 10:29 AM, Luboš Doležel <address@hidden> wrote:
Hi,

for toll-free bridging in CoreBase, I need a way to detect whether the incoming pointer is a small object encoded in a pointer and act accordingly (treat it as an ObjC object and avoid reading it).

What is the correct approach?

Thanks!
--
Luboš Doležel


_______________________________________________
Gnustep-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/gnustep-dev


reply via email to

[Prev in Thread] Current Thread [Next in Thread]