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:
parent
679be1d727
commit
3467a719bb
1 changed files with 5 additions and 0 deletions
|
|
@ -199,6 +199,11 @@ using namespace spot;
|
|||
// 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 {
|
||||
if (!$1)
|
||||
$result = SWIG_Py_Void();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue