In my case abort() will happen for potentially many different reasons.
So I'd like to have

 #include "c_lib/include/interrupt.h"
char[1000] errmessage
void libgap_errors()
 {
     set_sage_signal_handler_message(errmessage);
     abort();
 }

and set errmessage in the Cython code.
Will this work?

It would be even more natural to call set_sage_signal_handler_message
after abort(), in Cython,
although I do not know whether this is possible.

Thanks,
Dima

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to