diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-21 09:59:19 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-09-21 19:18:28 +0200 |
commit | 26a50da482c12bbbfcc8cea46aecd9f0c8305ca6 (patch) | |
tree | 84f53a8df01856d03b6ba28c59af68e28bd98d9a /sources/shiboken2/tests/libsample/samplenamespace.h | |
parent | ea89199e0ec036957dd103bb55ff480979be8622 (diff) |
shiboken2: Add namespace variables
They were ignored in the code parser. Take them into
account and add a test.
Task-number: PYSIDE-1224
Change-Id: I3baca95556129d695db294fdcc1ad92fc831672d
Reviewed-by: Christian Tismer <tismer@stackless.com>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/libsample/samplenamespace.h')
-rw-r--r-- | sources/shiboken2/tests/libsample/samplenamespace.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/libsample/samplenamespace.h b/sources/shiboken2/tests/libsample/samplenamespace.h index 9e46b2ad6..0d418de16 100644 --- a/sources/shiboken2/tests/libsample/samplenamespace.h +++ b/sources/shiboken2/tests/libsample/samplenamespace.h @@ -173,6 +173,8 @@ LIBSAMPLE_API double passReferenceToValueType(const Point& point, double multipl // Add a new signature on type system with only a ObjectType pointer as parameter. LIBSAMPLE_API int passReferenceToObjectType(const ObjectType& obj, int multiplier); +extern LIBSAMPLE_API int variableInNamespace; + } // namespace SampleNamespace #endif // SAMPLENAMESPACE_H |