Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/python/funcptr_cpp_runme.py
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

11 lines
276 B
Python

from funcptr_cpp import *
if call1(ADD_BY_VALUE, 10, 11) != 21:
raise RuntimeError
if call2(ADD_BY_POINTER, 12, 13) != 25:
raise RuntimeError
if call3(ADD_BY_REFERENCE, 14, 15) != 29:
raise RuntimeError
if call1(ADD_BY_VALUE_C, 2, 3) != 5:
raise RuntimeError