/*
- * $Id: rb_timer.c 77 2004-08-19 17:39:29Z tilman $
+ * $Id: rb_timer.c 267 2005-02-28 21:20:03Z tilman $
*
* Copyright (C) 2004 ruby-ecore team (see AUTHORS)
*
return Qnil;
}
+static VALUE c_deleted_get (VALUE self)
+{
+ GET_OBJ (self, RbTimer, timer);
+
+ return timer->deleted ? Qtrue : Qfalse;
+}
+
void Init_Timer (void)
{
VALUE c = rb_define_class_under (mEcore, "Timer", rb_cObject);
rb_define_singleton_method (c, "new", c_new, 1);
rb_define_method (c, "delete", c_delete, 0);
+ rb_define_method (c, "deleted?", c_deleted_get, 0);
}