Hot to get rid of memory allocations/deallocations in swig wrappers?
- by Dmitriy Matveev
I want to use swig for generation of read-only wrappers for a complex object. The object which I want to wrap will always be existent while I will read it. And also I will only use my wrappers at the time that object is existent, thus I don't need any memory management from SWIG.
For following swig interface:
%module test
%immutable;
%inline
%{…