Forums > Dev

Telling the type of a pointer

November 15, 2012 | 1:45 am


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?


November 15, 2012 | 1:53 am

Nevermind. object_classname() is my friend…

Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Dev