ecore_init and ecore_shutdown aren't exported anymore.
[ruby-ecore.git] / src / ecore / rb_ecore.c
index aba5f524515b20259c588fecb416f46c01922b9f..7cd8641ccd6456e2fe0f63d0a9f732ac3e20ac28 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: rb_ecore.c 9 2004-06-19 19:53:47Z tilman $
+ * $Id: rb_ecore.c 27 2004-07-08 18:25:05Z tilman $
  *
  * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de)
  *
 #include "rb_timer.h"
 #include "rb_idler.h"
 
+#ifdef DEBUG
 static VALUE m_init (VALUE self)
 {
        return INT2FIX (ecore_init ());
 }
 
+static VALUE m_shutdown (VALUE self)
+{
+       return INT2FIX (ecore_shutdown ());
+}
+#endif
+
 static VALUE m_main_loop_begin (VALUE self)
 {
        ecore_main_loop_begin ();
@@ -52,27 +59,23 @@ static VALUE m_main_loop_quit (VALUE self)
        return Qnil;
 }
 
-static VALUE m_shutdown (VALUE self)
-{
-       rb_gc_start ();
-
-       return INT2FIX (ecore_shutdown ());
-}
-
 void Init_ecore (void)
 {
        mEcore = rb_define_module ("Ecore");
 
+#ifdef DEBUG
        rb_define_module_function (mEcore, "init",
                                   m_init, 0);
+       rb_define_module_function (mEcore, "shutdown",
+                                  m_shutdown, 0);
+#endif
+
        rb_define_module_function (mEcore, "main_loop_begin",
                                   m_main_loop_begin, 0);
        rb_define_module_function (mEcore, "main_loop_iterate",
                                   m_main_loop_iterate, 0);
        rb_define_module_function (mEcore, "main_loop_quit",
                                   m_main_loop_quit, 0);
-       rb_define_module_function (mEcore, "shutdown",
-                                  m_shutdown, 0);
 
        Init_Timer ();
        Init_Idler ();