Thanks.


On Tue, Nov 27, 2012 at 9:36 PM, Josh Cherry <jcherry@ncbi.nlm.nih.gov> wrote:
You can insert code into the initialization function using %init:

http://www.swig.org/Doc2.0/SWIG.html#SWIG_nn40

Josh



On Tue, 27 Nov 2012, Abhimanyu Sirohi wrote:

Hi,

Is it possible to prepend or append code to methods inside the generated
CPP file (glue code)? I want to call a certain method when SWIG_init is
called.

Thanks