From: Rico Tzschichholz Date: Mon, 13 Dec 2021 18:35:47 +0000 (+0100) Subject: codegen: Use a dedicated EmitContext for _variant_get*() functions X-Git-Tag: 0.48.22~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54a35e13280b40b0199f166722aff7b93239c87e;p=thirdparty%2Fvala.git codegen: Use a dedicated EmitContext for _variant_get*() functions --- diff --git a/codegen/valagvariantmodule.vala b/codegen/valagvariantmodule.vala index fb28aa762..a7b28f92a 100644 --- a/codegen/valagvariantmodule.vala +++ b/codegen/valagvariantmodule.vala @@ -158,6 +158,7 @@ public class Vala.GVariantModule : GValueModule { ccode.add_expression (ccall); } + push_context (new EmitContext ()); push_function (cfunc); CCodeExpression type_expr = null; @@ -217,6 +218,7 @@ public class Vala.GVariantModule : GValueModule { } pop_function (); + pop_context (); cfile.add_function_declaration (cfunc); cfile.add_function (cfunc);