Reviewed by Sébastien Granjoux <seb.sfo@free.fr>:
[anjuta-git-plugin.git] / libanjuta / anjuta-error.c
blobb23ace1b34f6ba13ab30504aa000b82d9fc19da3
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta-error.c
4 * Copyright (C) 2007 Sebastien Granjoux <seb.sfo@free.fr>
6 * This library 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.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 #include "anjuta-error.h"
23 #ifdef NEED_G_ERROR_GET_TYPE
25 GType
26 g_error_get_type (void)
28 static GType type = G_TYPE_INVALID;
30 if (type == G_TYPE_INVALID)
32 type = g_boxed_type_register_static ("GError",
33 (GBoxedCopyFunc) g_error_copy,
34 (GBoxedFreeFunc) g_error_free);
37 return type;
40 #endif