diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-11-07 16:31:47 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-11-07 17:24:36 +0100 |
commit | f38fdde7e837251093a7dadab95dc576712a9fc7 (patch) | |
tree | 604375b3debbdad30de0ebf26d3793e3bdbfe318 /tests/enums | |
parent | f1a8f2a4c6771124abd61fd0ebfa991c846575fe (diff) | |
download | vala-f38fdde7e837251093a7dadab95dc576712a9fc7.tar.gz |
codegen: Emit constants without initializer list in defines section
Fixes https://gitlab.gnome.org/GNOME/vala/issues/440
Diffstat (limited to 'tests/enums')
-rw-r--r-- | tests/enums/enums.c-expected | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/enums/enums.c-expected b/tests/enums/enums.c-expected index fc6dd0197..bef176eac 100644 --- a/tests/enums/enums.c-expected +++ b/tests/enums/enums.c-expected @@ -5,6 +5,7 @@ #include <glib.h> #include <stdio.h> +#define MAMAN_FOOISH_FOO 2 #if !defined(VALA_EXTERN) #if defined(_MSC_VER) #define VALA_EXTERN __declspec(dllexport) extern @@ -60,7 +61,6 @@ static gpointer maman_bar_parent_class = NULL; VALA_EXTERN GType maman_foo_get_type (void) G_GNUC_CONST ; VALA_EXTERN GType maman_fooish_get_type (void) G_GNUC_CONST ; VALA_EXTERN gint maman_fooish_something (MamanFooish self); -#define MAMAN_FOOISH_FOO 2 VALA_EXTERN GType maman_bar_get_type (void) G_GNUC_CONST ; G_DEFINE_AUTOPTR_CLEANUP_FUNC (MamanBar, g_object_unref) VALA_EXTERN void maman_bar_run (MamanBar* self); |