diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-11-05 08:55:38 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2008-11-05 08:55:38 +0000 |
commit | 8e38549e10aeaab8cdcf9ffd061d6d09a00c7291 (patch) | |
tree | b51c847ffc0c95675c3b3b89c4c0b83bc8958ede | |
parent | 3f38e0d936c3b6cba75117eca7692d9bbfb66fae (diff) |
fixed nameclash with Pd's internal object
svn path=/trunk/externals/zexy/; revision=10360
-rw-r--r-- | src/pack.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -132,9 +132,13 @@ static void zpack_free(t_zpack*x){ void zpack_setup(void) { - zpack_class = class_new(gensym("pack"), (t_newmethod)zpack_new, + zpack_class = class_new(gensym("zexy/pack"), (t_newmethod)zpack_new, (t_method)zpack_free, sizeof(t_zpack), 0, A_GIMME, 0); - class_addcreator((t_newmethod)zpack_new, gensym("zexy/pack"), A_GIMME, 0); +#if 0 + /* oops Pd-0.42 allows us to override built-ins + * this is bad as long as the 2 objects are not compatible */ + class_addcreator((t_newmethod)zpack_new, gensym("pack"), A_GIMME, 0); +#endif class_addbang(zpack_class, zpack_bang); class_addlist(zpack_class, zpack_list0); |