var this_type = SemanticAnalyzer.get_data_type_for_symbol (cl);
function.add_parameter (new CCodeParameter ("self", get_ccode_name (this_type)));
push_function (function);
- ccode.add_return (expression);
+ ccode.add_return (new CCodeCastExpression (expression, return_type));
pop_function ();
cfile.add_function (function);
static GType
bar_foo_get_g_type (Bar* self)
{
- return self->priv->g_type;
+ return (GType) self->priv->g_type;
}
static GBoxedCopyFunc
bar_foo_get_g_dup_func (Bar* self)
{
- return self->priv->g_dup_func;
+ return (GBoxedCopyFunc) self->priv->g_dup_func;
}
static GDestroyNotify
bar_foo_get_g_destroy_func (Bar* self)
{
- return self->priv->g_destroy_func;
+ return (GDestroyNotify) self->priv->g_destroy_func;
}
static void
static GType
foo_ifoo_get_g_type (Foo* self)
{
- return G_TYPE_STRING;
+ return (GType) G_TYPE_STRING;
}
static GBoxedCopyFunc
foo_ifoo_get_g_dup_func (Foo* self)
{
- return g_strdup;
+ return (GBoxedCopyFunc) g_strdup;
}
static GDestroyNotify
foo_ifoo_get_g_destroy_func (Foo* self)
{
- return g_free;
+ return (GDestroyNotify) g_free;
}
static void