Salome HOME
Small modif linked to previous commit + small doc on it
[tools/medcoupling.git] / src / MEDCoupling_Swig / MEDCouplingCommon.i
index ba29ca98d45f446c4303a34378756b18717d6dea..bf0016815c9947fecc9a56d6f5dbaa262f1f5d7c 100644 (file)
@@ -462,14 +462,13 @@ using namespace INTERP_KERNEL;
 %include "MEDCouplingRefCountObject.i"
 %include "MEDCouplingMemArray.i"
 
-%inline
-{
+%{
   void initializeMe()
-  {
+  {// AGY : here initialization of C++ traits in MEDCouplingDataArrayTypemaps.i for code factorization. Awful, I know, but no other solutions.
     SWIGTITraits<double>::TI=SWIGTYPE_p_MEDCoupling__DataArrayDouble;
     SWIGTITraits<float>::TI=SWIGTYPE_p_MEDCoupling__DataArrayFloat;
   }
-}
+%}
 
 namespace INTERP_KERNEL
 {