Telling the type of a pointer

Nov 15, 2012 at 1:45am

Telling the type of a pointer


if I have an object attached — via object_subscribe() or object_attach() — to several different types of sources, how can I identify the type of the notifier object? Let’s say, I register my object to a t_dictionary and also an own-developed custom object. When I receive a notification, how can I tell the type of the sender argument (typed as void *) of my notify() function?


Nov 15, 2012 at 1:53am

Nevermind. object_classname() is my friend…


You must be logged in to reply to this topic.