diff options
author | Momtchil Momtchev <momtchil@momtchev.com> | 2023-04-14 10:59:31 +0200 |
---|---|---|
committer | Momtchil Momtchev <momtchil@momtchev.com> | 2023-04-14 10:59:31 +0200 |
commit | 3828b247be412fb368f4c0f2d6935335707c3b31 (patch) | |
tree | 92b00a4b8829eeb1ca31b5cfa44ee45b9ea747ec /Examples | |
parent | d39cee1ce151fbe4920f0446b287835208104271 (diff) | |
download | swig-3828b247be412fb368f4c0f2d6935335707c3b31.tar.gz |
actually test the value
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/test-suite/preproc_defined.i | 2 | ||||
-rw-r--r-- | Examples/test-suite/python/preproc_defined_runme.py | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/Examples/test-suite/preproc_defined.i b/Examples/test-suite/preproc_defined.i index 13bbd6698..21afa86ec 100644 --- a/Examples/test-suite/preproc_defined.i +++ b/Examples/test-suite/preproc_defined.i @@ -125,4 +125,4 @@ void another_macro_checking(void) { #endif #define __attribute__(x) - +%import <preproc_defined.h> diff --git a/Examples/test-suite/python/preproc_defined_runme.py b/Examples/test-suite/python/preproc_defined_runme.py index af46816be..4be937b8d 100644 --- a/Examples/test-suite/python/preproc_defined_runme.py +++ b/Examples/test-suite/python/preproc_defined_runme.py @@ -3,6 +3,9 @@ import preproc_defined if preproc_defined.call_checking() != 1: raise RuntimeError +if preproc_defined.y != 8: + raise RuntimeError() + d = preproc_defined.Defined() d.defined = 10 |