1 /***************************************************************************
3 * This file is part of the KDE project
4 * copyright (C)2005 by Cyrille Berger (cberger@cberger.net)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
20 #ifndef KROSS_RUBY_CONFIG_H
21 #define KROSS_RUBY_CONFIG_H
32 #include <kross/core/krossconfig.h>
34 // If this is defined we call explicit rb_gc() manualy on many places. This is
35 // normaly not needed and Ruby will handle the garbage collection for you. So,
36 // while it's probably better/faster to don't rb_gc() manualy it's still useful
37 // for debugging to detect and catch problems faster.
38 #define KROSS_RUBY_EXPLICIT_GC
40 // Following defines are for debugging only. If defined, we are more verbose.
41 //#define KROSS_RUBY_SCRIPT_CTORDTOR_DEBUG
42 //#define KROSS_RUBY_SCRIPT_CONNECTFUNCTION_DEBUG
43 //#define KROSS_RUBY_SCRIPT_CALLFUNCTION_DEBUG
44 //#define KROSS_RUBY_SCRIPT_FUNCTIONNAMES_DEBUG
45 //#define KROSS_RUBY_SCRIPT_EXECUTE_DEBUG
46 //#define KROSS_RUBY_SCRIPT_METHODADDED_DEBUG
47 //#define KROSS_RUBY_SCRIPT_DEBUG
49 //#define KROSS_RUBY_INTERPRETER_CTORDTOR_DEBUG
50 //#define KROSS_RUBY_INTERPRETER_DEBUG
52 //#define KROSS_RUBY_EXTENSION_CTORDTOR_DEBUG
53 //#define KROSS_RUBY_EXTENSION_CALLCONNECT_DEBUG
54 //#define KROSS_RUBY_EXTENSION_DEBUG
56 //#define KROSS_RUBY_CALLCACHE_CTORDTOR_DEBUG
57 //#define KROSS_RUBY_CALLCACHE_DEBUG
59 //#define KROSS_RUBY_MODULE_CTORDTOR_DEBUG
60 //#define KROSS_RUBY_MODULE_DEBUG
62 //#define KROSS_RUBY_VARIANT_DEBUG
64 //#define KROSS_RUBY_FUNCTION_CTORDTOR_DEBUG
65 //#define KROSS_RUBY_FUNCTION_DEBUG
67 //#define KROSS_RUBY_OBJECT_DEBUG