X-Git-Url: http://git.code-monkey.de/?p=ruby-evas.git;a=blobdiff_plain;f=src%2Frb_evas_main.c;h=288408a1340714717f91b3e7617d0acc5af1d2dc;hp=2fbb484c44e5067a52b9de329af170c6da4e915a;hb=57c054bb97ec81f443c45cae635bb4c7036091c2;hpb=ba05ccf5a7b503e2d9a58c1de4072312b5abfab7 diff --git a/src/rb_evas_main.c b/src/rb_evas_main.c index 2fbb484..288408a 100644 --- a/src/rb_evas_main.c +++ b/src/rb_evas_main.c @@ -1,5 +1,5 @@ /* - * $Id: rb_evas_main.c 23 2004-06-26 22:55:31Z tilman $ + * $Id: rb_evas_main.c 29 2004-07-08 18:47:44Z tilman $ * * Copyright (C) 2004 Tilman Sauerbeck (tilman at code-monkey de) * @@ -32,18 +32,26 @@ #include "rb_image.h" #include "rb_text.h" -static VALUE m_shutdown (VALUE self) +#ifdef DEBUG +static VALUE m_init (VALUE self) { - evas_shutdown (); + return INT2FIX (evas_init ()); +} - return Qnil; +static VALUE m_shutdown (VALUE self) +{ + return INT2FIX (evas_shutdown ()); } +#endif void Init_evas (void) { mEvas = rb_define_module ("Evas"); +#ifdef DEBUG + rb_define_module_function (mEvas, "init", m_init, 0); rb_define_module_function (mEvas, "shutdown", m_shutdown, 0); +#endif Init_Evas (); Init_EvasObject ();