/tags/rel-1-3-26/SWIG/Examples/test-suite/python/preproc_runme.py
Python | 14 lines | 9 code | 5 blank | 0 comment | 4 complexity | 5233724c1d7a1ebfc6c53bf82c0b9a9d MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- import preproc
- if preproc.endif != 1:
- raise RuntimeError
- if preproc.define != 1:
- raise RuntimeError
- if preproc.defined != 1:
- raise RuntimeError
- if 2*preproc.one != preproc.two:
- raise RuntimeError