include "gdal.pxi" from libc.stdio cimport * cdef get_last_error_msg() cdef int exc_wrap_int(int retval) except -1 cdef OGRErr exc_wrap_ogrerr(OGRErr retval) except -1 cdef void *exc_wrap_pointer(void *ptr) except NULL cdef VSILFILE *exc_wrap_vsilfile(VSILFILE *f) except NULL cdef class StackChecker: cdef object error_stack cdef int exc_wrap_int(self, int retval) except -1 cdef void *exc_wrap_pointer(self, void *ptr) except NULL