/tags/rel-1-3-29/SWIG/Examples/test-suite/python/ret_by_value_runme.py

# · Python · 8 lines · 6 code · 2 blank · 0 comment · 2 complexity · ce9d7857b6ef387163619966236096df MD5 · raw file

  1. import ret_by_value
  2. a = ret_by_value.get_test()
  3. if a.myInt != 100:
  4. raise RuntimeError
  5. if a.myShort != 200:
  6. raise RuntimeError