PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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