/tags/rel-1-3-29/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
1import preproc 2 3if preproc.endif != 1: 4 raise RuntimeError 5 6if preproc.define != 1: 7 raise RuntimeError 8 9if preproc.defined != 1: 10 raise RuntimeError 11 12if 2*preproc.one != preproc.two: 13 raise RuntimeError 14