/*
- * $Id: rb_animator.c 146 2004-11-27 15:38:52Z tilman $
+ * $Id: rb_animator.c 150 2004-12-03 13:45:00Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
#include "rb_ecore.h"
+void Init_stack (VALUE *addr);
+
typedef struct {
Ecore_Animator *real;
VALUE callback;
{
VALUE r;
RbAnimator *animator = data;
+ static bool initted;
+
+ /* this fixes a weird segfault that occured when the animator's
+ * callback was called from a Ecore::Timer callback.
+ */
+ if (!initted) {
+ Init_stack (0);
+ initted = true;
+ }
r = rb_funcall (animator->callback, rb_intern ("call"), 0);