File: class/Extras/Code/Swig/Shadow/main_low.py
from numberc import * # same test as main.cxx # use low-level C accessor function interface num = new_Number(1) Number_add(num, 4) # pass C++ 'this' pointer explicitly Number_display(num) # use accessor functions in the C module Number_sub(num, 2) Number_display(num) Number_data_set(num, 99) print Number_data_get(num) Number_display(num) delete_Number(num)