]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Use a dedicated EmitContext for _variant_get*() functions
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 13 Dec 2021 18:35:47 +0000 (19:35 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 9 Jan 2022 09:00:55 +0000 (10:00 +0100)
codegen/valagvariantmodule.vala

index 2e4c4956ed039f6a62881b0748afa1d080c29ee2..62e8169c38bfc9038f1edf7ea311fb3fc2e4af8d 100644 (file)
@@ -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);