python bindings: do not set return of functions returning isl_bool to c_bool
commitf09837f10c5085ac48b52d595e0ac2766587021d
authorSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 6 Sep 2018 14:36:54 +0000 (6 16:36 +0200)
committerSven Verdoolaege <sven.verdoolaege@gmail.com>
Thu, 6 Sep 2018 14:36:54 +0000 (6 16:36 +0200)
treecd16d9c13eb2d5f898d3eb1c2a3be11c131ff37d
parentbc6920cbf6ef5b215d916885db7b84a28e382c7f
python bindings: do not set return of functions returning isl_bool to c_bool

While the python method returns a bool, the C function can also
return a negative value.
Note that there is currently no way of forcing
a function returning isl_bool to return isl_bool_error from
the python interface, so this fix cannot be tested in any obvious way.
Even exporting a function with a callback returning bool and
failing inside the callback does not help since the save exception
is detected even if the called function does not return
a negative value.

Signed-off-by: Sven Verdoolaege <sven.verdoolaege@gmail.com>
interface/python.cc