[vala/0.40] vapigen: Define "GOBJECT" corresponding to set profile of CodeContext



commit 3115f3dfa2b2aae73d959a87c8e61987833b1cab
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Thu Mar 12 19:19:19 2020 +0100

    vapigen: Define "GOBJECT" corresponding to set profile of CodeContext
    
    This is required to evaluate pre-processor directives correctly in
    sourced bindings.
    
    Fixes https://gitlab.gnome.org/GNOME/vala/issues/933

 vapigen/valavapigen.vala | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/vapigen/valavapigen.vala b/vapigen/valavapigen.vala
index a2bc04587..0d3a9166e 100644
--- a/vapigen/valavapigen.vala
+++ b/vapigen/valavapigen.vala
@@ -76,6 +76,7 @@ class Vala.VAPIGen {
        private int run () {
                context = new CodeContext ();
                context.profile = Profile.GOBJECT;
+               context.add_define ("GOBJECT");
                context.vapi_directories = vapi_directories;
                context.gir_directories = gir_directories;
                context.metadata_directories = metadata_directories;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]