CLASS_ATTR_ATOM_VARSIZE ?

Jan 4, 2011 at 7:34am

CLASS_ATTR_ATOM_VARSIZE ?

Hello maxers,

is anybody know how to use CLASS_ATTR_ATOM_VARSIZE ?

t_atom data[100] ;

CLASS_ATTR_ATOM_VARSIZE (c, "data", ATTR_FLAGS_NONE, t_myobj, data, 0, 100) ;

That doesn’t work ; I’m pretty sure that i shouldn’t fill the macro with the zero (after data) but i don’t really understand what i should do and i can not find example code ;-)

#54234
Jan 4, 2011 at 9:17am

Hello maxers,

So it seems i finally founded.

t_atom   data[100] ;
long     data_size ;

CLASS_ATTR_ATOM_VARSIZE (c, "data", ATTR_FLAGS_NONE, t_myobj, data, data_size, 100) ;
#195190

You must be logged in to reply to this topic.