aboutsummaryrefslogtreecommitdiff
path: root/rhythms_memory.c
diff options
context:
space:
mode:
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);
+
}
+
+