Bug with error handling: for now obi_errno needs to be passed to the

function handling errors and exceptions, as it can't read the right
value of the global obi_errno (Cython configuration problem?)
This commit is contained in:
Celine Mercier
2017-07-07 15:36:11 +02:00
parent 740d021276
commit a718081ebd
9 changed files with 188 additions and 144 deletions

View File

@ -2,7 +2,7 @@
from obitools3.dms.capi.obitypes cimport obitype_t, index_t
cdef obi_errno_to_exception(index_t line_nb=*, object elt_id=*, str error_message=*)
cdef obi_errno_to_exception(int obi_errno, index_t line_nb=*, object elt_id=*, str error_message=*)
cdef bytes str2bytes(str string)
cdef str bytes2str(bytes string)