[PD] A_DEFSYM/A_SYMBOL A_DEFFLOAT/A_FLOAT differences?

Derek Kwan derek.x.kwan at gmail.com
Mon May 2 02:30:41 CEST 2016



Hello list,

What are the differences between A_DEFSYM and A_SYMBOL and also
A_DEFFLOAT and A_FLOAT?

In my situation, I'm updating an object that used to take A_DEFSYM as a
first argt and A_FLOAT as a second argt, but I want to take a variable
number of arguments now so I'm just replacing those with A_GIMME in
class_new (and then passing t_symbol *s, int argc, t_atom *argv instead
of t_symbol *s, t_floatarg f into the class's _new). Then I'm
type-checking each argt of the t_atom by A_SYMBOL and A_FLOAT and
getting their contents with atom_getsymbolarg and atom_getfloatarg
respectively. However, things seem not to work the same... It could be
other bugs I've introduced but could this be also due to going from A_DEFSYM
to A_SYMBOL (and perhaps the same for float)? If so, is there a way to
typecast to the DEF versions?

Thanks!

Derek

=====================
Derek Kwan
www.derekxkwan.com



More information about the Pd-list mailing list