2
* Copyright (C) 2008 Benjamin Otte <otte@gnome.org>
3
* 2008 Pekka Lampila <pekka.lampila@iki.fi>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library 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
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301 USA
25
#include "vivi_code_builtin_statement_default.h"
26
#include "vivi_code_asm_code_default.h"
28
#define DEFAULT_BUILTIN_STATEMENT(CapsName, underscore_name, name) \
30
G_DEFINE_TYPE (ViviCode ## CapsName, vivi_code_ ## underscore_name, VIVI_TYPE_CODE_BUILTIN_STATEMENT) \
33
vivi_code_ ## underscore_name ## _class_init (ViviCodeBuiltinStatementClass *klass) \
35
ViviCodeBuiltinStatementClass *builtin_class = VIVI_CODE_BUILTIN_STATEMENT_CLASS (klass); \
37
builtin_class->function_name = name; \
38
builtin_class->asm_constructor = vivi_code_asm_ ## underscore_name ## _new; \
42
vivi_code_ ## underscore_name ## _init (ViviCodeBuiltinStatement *builtin_statement) \
47
vivi_code_ ## underscore_name ## _new (void) \
49
return VIVI_CODE_STATEMENT ( \
50
g_object_new (vivi_code_ ## underscore_name ## _get_type (), NULL)); \
53
#include "vivi_code_defaults.h"