From f428146b3bf8d4b3073b4fa826c250743f20fe7f Mon Sep 17 00:00:00 2001 From: Davide Morelli Date: Thu, 22 Dec 2005 23:21:04 +0000 Subject: fixed a bug in duration2int, now rhythms_memory working svn path=/trunk/externals/frankenstein/; revision=4286 --- rhythms_memory.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'rhythms_memory.c') diff --git a/rhythms_memory.c b/rhythms_memory.c index b885a05..8630336 100755 --- a/rhythms_memory.c +++ b/rhythms_memory.c @@ -195,6 +195,14 @@ void *rhythms_memory_new(t_symbol *s, int argc, t_atom *argv) return (x); } +// debugging function +void crash(t_rhythms_memory *x) +{ + int *a; + a = malloc(sizeof(int)); + a[9999999999999999999] = 1; +} + void rhythms_memory_setup(void) { rhythms_memory_class = class_new(gensym("rhythms_memory"), (t_newmethod)rhythms_memory_new, @@ -203,4 +211,8 @@ void rhythms_memory_setup(void) class_addmethod(rhythms_memory_class, (t_method)end_measure, gensym("measure"), 0); class_doaddfloat(rhythms_memory_class, (t_method)add_event); + class_addmethod(rhythms_memory_class, (t_method)crash, gensym("crash"), 0); + } + + -- cgit v1.2.1