I'm struggling to find the right function in the c-api to query if a method that isabout to be called via send message is a GIMME, A_LONG, ...
If I have a t_object* obj of the target object with a t_symbol* methodname (eg bang) and I'd like to get the type of the method (named by methodname) what is the current documented way?
As an aside, I found in ext_obex.h, there an undocumented method which looked promising:
t_method_object *object_getmethod_object(t_object *x, t_symbol *methodname)
where t_method_object is struct which has a messlist_entry which is an single entry in a t_messlist
I tested as follows:
t_method_object* mobj = object_getmethod_object(obj, methodname);
t_messlist m_entry = mobj->messlist_entry;
post("MESSLIST_ENTRY method_name %s type %s", m_entry.m_sym->s_name,
I was able to get the name of the method (m_entry.m_sym) but m_entry.m_type was empty.
Given that this is undocumented, I wasn't hoping for much but is there a canonical way to do this?
Any help would be really really appreciated.