diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-02-11 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-02-13 14:11:27 +0100 |
commit | e8e567546282d714729df55d10ca26ec35c71416 (patch) | |
tree | a59f33e6f9f10b3f5faedd59b735420c19abdc0d /tests/scanner/foo.h | |
parent | 6f677e77413b628756a9dbb8082f783757b099f3 (diff) | |
download | gobject-introspection-e8e567546282d714729df55d10ca26ec35c71416.tar.gz |
Reuse const_table between calls to SourceScanner parse_files and parse_macros.
Macro constants may now refer to constants defined in source files.
Test case provided by Philip Chimento.
Fixes issues #173 and #75.
Diffstat (limited to 'tests/scanner/foo.h')
-rw-r--r-- | tests/scanner/foo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/scanner/foo.h b/tests/scanner/foo.h index 02d9b7c8..bf9d2c37 100644 --- a/tests/scanner/foo.h +++ b/tests/scanner/foo.h @@ -246,6 +246,7 @@ typedef enum REGRESS_FOO_FLAGS_THIRD = 1 << 2 } RegressFooFlagsType; +#define REGRESS_FOO_FLAGS_SECOND_AND_THIRD (REGRESS_FOO_FLAGS_SECOND | REGRESS_FOO_FLAGS_THIRD) _GI_TEST_EXTERN GType regress_foo_flags_type_get_type (void); |