From: Thomas P. <tho...@fr...> - 2008-11-29 14:01:33
|
Hello, I have the following C++ code I would like to use from Python: ==== Init.cpp ==== typedef double myReal; myReal a = 0; myReal b= 0; void ReInit(myReal &a, myReal &b){ a =2.0; b =2.0; } ================ I would like to use it from Python with the syntax: a,b = ReInit() I'm new to SWIG and did not find anything helpfull in the documentation. Doc related to typemaps deals only with *INPUT, *OUTPUT, *INOUT but not &INPUT, &OUTPUT or &INOUT. Did I miss something? Best regards, Thomas Paviot |