aboutsummaryrefslogtreecommitdiff
path: root/rhythms_memory.c
diff options
context:
space:
mode:
authorDavide Morelli <morellid@users.sourceforge.net>2005-12-22 23:21:04 +0000
committerDavide Morelli <morellid@users.sourceforge.net>2005-12-22 23:21:04 +0000
commitf428146b3bf8d4b3073b4fa826c250743f20fe7f (patch)
treec016025a2289e61a90427f1a4cc1c00cc2911971 /rhythms_memory.c
parent6b999630484e02b53c0bc71d0bcc5da1919728c8 (diff)
fixed a bug in duration2int, now rhythms_memory working
svn path=/trunk/externals/frankenstein/; revision=4286
Diffstat (limited to 'rhythms_memory.c')
-rwxr-xr-xrhythms_memory.c12
1 files changed, 12 insertions, 0 deletions
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);
+
}
+
+