Actually, you might just want to do:
class_addanything(pdbang_class, (t_method)pdbang_trigger);
This is completely untested. At a minimum, add
class_addsymbol(pdbang_class, (t_method)pdbang_trigger); class_addlist(pdbang_class, (t_method)pdbang_trigger);
Later, Mark
Winfried Ritsch wrote:
<snip> > void pdbang_setup(void) > { > pdbang_class = class_new(gensym("bang"), (t_newmethod)pdbang_new, 0, > sizeof(t_pdbang), 0, 0); > class_addcreator(pdbang_new, gensym("b"), 0); > class_addbang(pdbang_class, pdbang_bang); > class_addint(pdbang_class, pdbang_int); > class_addfloat(pdbang_class, (t_method)pdbang_float); > } <snip>