python: kill some Swig warnings

* wrap/python/spot_impl.i: Get rid of some warnings about missing
typecheck for spot::formula.
This commit is contained in:
Alexandre Duret-Lutz 2015-12-10 18:25:35 +01:00
parent 679be1d727
commit 3467a719bb

View file

@ -199,6 +199,11 @@ using namespace spot;
// if tmp == nullptr, then the default value of $1 is fine. // if tmp == nullptr, then the default value of $1 is fine.
} }
%typemap(typecheck) spot::formula {
$1 = SWIG_CheckState(SWIG_ConvertPtr($input, nullptr,
$descriptor(spot::formula*), 0));
}
%typemap(out) spot::formula { %typemap(out) spot::formula {
if (!$1) if (!$1)
$result = SWIG_Py_Void(); $result = SWIG_Py_Void();