Commit 3467a719 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

python: kill some Swig warnings

* wrap/python/spot_impl.i: Get rid of some warnings about missing
typecheck for spot::formula.
parent 679be1d7
...@@ -199,6 +199,11 @@ using namespace spot; ...@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment