set_cvalue (expr, new CCodeIdentifier (get_ccode_name (m)));
}
+ delegate_type = expr.target_type as DelegateType;
+ if (delegate_type != null) {
+ generate_type_declaration (delegate_type, cfile);
+ set_cvalue (expr, new CCodeCastExpression (get_cvalue (expr), get_ccode_name (delegate_type.delegate_symbol)));
+ }
+
set_delegate_target_destroy_notify (expr, new CCodeConstant ("NULL"));
if (m.binding == MemberBinding.STATIC) {
set_delegate_target (expr, new CCodeConstant ("NULL"));
GError* _inner_error0_ = NULL;
{
FooFunc func = NULL;
- func = foo;
+ func = (FooFunc) foo;
func (&_inner_error0_, "foo", "bar", "manam", NULL);
if (G_UNLIKELY (_inner_error0_ != NULL)) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
}
{
FooFunc func = NULL;
- func = bar;
+ func = (FooFunc) bar;
{
FooFunc _tmp0_;
_tmp0_ = func;
{
{
FooFunc func = NULL;
- func = foo;
+ func = (FooFunc) foo;
func ("foo", "bar", "manam", NULL);
}
{
BarFunc func = NULL;
- func = bar;
+ func = (BarFunc) bar;
func (23, 42, 4711, NULL);
}
{
GValue* _tmp0_ = NULL;
GValue* _tmp1_ = NULL;
GValue* _tmp2_ = NULL;
- func = manam;
+ func = (ManamFunc) manam;
_tmp0_ = g_new0 (GValue, 1);
g_value_init (_tmp0_, G_TYPE_STRING);
g_value_set_string (_tmp0_, "foo");
GValue* _tmp3_ = NULL;
GValue* _tmp4_ = NULL;
GValue* _tmp5_ = NULL;
- func = manam_owned;
+ func = (ManamOwnedFunc) manam_owned;
_tmp3_ = g_new0 (GValue, 1);
g_value_init (_tmp3_, G_TYPE_STRING);
g_value_set_string (_tmp3_, "foo");
GVariant* _tmp6_;
GVariant* _tmp7_;
GVariant* _tmp8_;
- func = minim;
+ func = (MinimFunc) minim;
_tmp6_ = _variant_new1 ("foo");
_tmp7_ = _variant_new2 (4711);
_tmp8_ = _variant_new3 (3.1415);
GError* _inner_error0_ = NULL;
{
FooFunc func = NULL;
- func = foo;
+ func = (FooFunc) foo;
func ("foo", 42, "bar", NULL);
}
{
FooFunc func = NULL;
BarFunc f = NULL;
- func = foo;
+ func = (FooFunc) foo;
f = func;
}
{
}
{
BazFunc func = NULL;
- func = baz;
+ func = (BazFunc) baz;
func ("baz", &_inner_error0_, 23, "bar", NULL);
if (G_UNLIKELY (_inner_error0_ != NULL)) {
g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
}
{
BazFunc func = NULL;
- func = baz_fail;
+ func = (BazFunc) baz_fail;
{
BazFunc _tmp0_;
_tmp0_ = func;
}
}
{
- mamam (foo);
+ mamam ((FooFunc) foo);
}
{
mamam ((FooFunc) foo);