[vala/0.16] codegen: Fix .begin on async methods returning structs
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.16] codegen: Fix .begin on async methods returning structs
- Date: Sat, 23 Jun 2012 15:54:20 +0000 (UTC)
commit cf25dab2db539d77c562053a8fd39600d22a6788
Author: JÃrg Billeter <j bitron ch>
Date: Thu Jun 14 14:26:33 2012 +0200
codegen: Fix .begin on async methods returning structs
codegen/valaccodemethodcallmodule.vala | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/codegen/valaccodemethodcallmodule.vala b/codegen/valaccodemethodcallmodule.vala
index fa3f727..5eff280 100644
--- a/codegen/valaccodemethodcallmodule.vala
+++ b/codegen/valaccodemethodcallmodule.vala
@@ -616,6 +616,11 @@ public class Vala.CCodeMethodCallModule : CCodeAssignmentModule {
}
}
+ if (async_call == ccall) {
+ // skip out parameter for .begin() calls
+ return_result_via_out_param = false;
+ }
+
CCodeExpression out_param_ref = null;
if (return_result_via_out_param) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]