Commit 80e8bf1f authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

loadbang in Pd is an ordinary callback

in order to make an object loadbangable,
we simply need to register a method for "loadbang" (without any args),
rather than a special method for out-of-pd args (A_CANT).
Since Pd's commit 5769c521, it is an error to send a proper message to
an A_CANT method.

parent 05159376
......@@ -40,7 +40,7 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#define add_method3(clss,meth,text,a1,a2,a3) class_addmethod(clss, (t_method)meth, gensym(const_cast<char *>(text)), a1,a2,a3,A_NULL)
#define add_method4(clss,meth,text,a1,a2,a3,a4) class_addmethod(clss, (t_method)meth, gensym(const_cast<char *>(text)), a1,a2,a3,a4,A_NULL)
#define add_method5(clss,meth,text,a1,a2,a3,a5) class_addmethod(clss, (t_method)meth, gensym(const_cast<char *>(text)), a1,a2,a3,a4,a5,A_NULL)
#define add_loadbang(clss,meth) class_addmethod(clss,(t_method)meth, gensym(const_cast<char *>("loadbang")), A_CANT, A_NULL)
#define add_loadbang(clss,meth) class_addmethod(clss,(t_method)meth, gensym(const_cast<char *>("loadbang")), A_NULL)
#define add_anything(clss,meth) class_addanything(clss,meth)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment