X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=interfaces%2Fswig%2Fgeneral%2Ftypemaps.i;fp=interfaces%2Fswig%2Fgeneral%2Ftypemaps.i;h=b12a75a8b77205a53989d0b77853b222c4bb9a4d;hb=80cd7b93506cc1926882d5fd08a2c74ee9359e29;hp=8cde9b9afefa2708210d96f76c7c7e09d20d6839;hpb=467a270adf12425827305759c0c4ea8f5b2b3854;p=opencv diff --git a/interfaces/swig/general/typemaps.i b/interfaces/swig/general/typemaps.i index 8cde9b9..b12a75a 100644 --- a/interfaces/swig/general/typemaps.i +++ b/interfaces/swig/general/typemaps.i @@ -53,14 +53,13 @@ * sets the Python error. * We need to return 0 here instead of an PyObject to tell Python * that an error has occured. - * NOTE (Olivier Bornet): not sure, but this must be language-independant... */ %exception { try { $action } catch (...) { - return NULL; + SWIG_fail; } } @@ -70,11 +69,6 @@ %include "sizeof.i" -/* assign type conversion precedence */ -%typemap(typecheck) CvPoint = SWIGTYPE; -%typemap(typecheck) CvScalar = SWIGTYPE; -%typemap(typecheck) CvPoint2D32f = SWIGTYPE; - /** * IplImage has no reference counting of underlying data, which creates problems with double * frees after accessing subarrays in python -- instead, replace IplImage with CvMat, which @@ -122,4 +116,3 @@ CvMat * func##__CvMat##decl{ } %} %enddef -