Sha256: 7e67d2c9cf5162efdcb2d90db6a2ba44109988c3c170499a84d3ca97a405f2ea
Contents?: true
Size: 1.84 KB
Versions: 7
Compression:
Stored size: 1.84 KB
Contents
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */ /* * Copyright (C) 2012-2019 Ruby-GNOME2 Project Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, * MA 02110-1301 USA */ #include "rb-gi-private.h" #define RG_TARGET_NAMESPACE rb_mGObjectIntrospection static gboolean is_debug_mode = FALSE; gboolean rb_gi_is_debug_mode(void) { return is_debug_mode; } void Init_gobject_introspection(void) { VALUE RG_TARGET_NAMESPACE; { const char *rb_gi_debug_env = getenv("RB_GI_DEBUG"); if (rb_gi_debug_env && strcmp(rb_gi_debug_env, "yes") == 0) { is_debug_mode = TRUE; } } RG_TARGET_NAMESPACE = rb_define_module("GObjectIntrospection"); rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION", rb_ary_new3(3, INT2FIX(GI_MAJOR_VERSION), INT2FIX(GI_MINOR_VERSION), INT2FIX(GI_MICRO_VERSION))); rb_gi_argument_init(); rb_gi_type_tag_init(RG_TARGET_NAMESPACE); rb_gi_base_info_init(RG_TARGET_NAMESPACE); rb_gi_repository_init(RG_TARGET_NAMESPACE); rb_gi_loader_init(RG_TARGET_NAMESPACE); }
Version data entries
7 entries across 7 versions & 1 rubygems