Go to the documentation of this file.
128 #ifdef WANT_SIGFPE_HANDLER
132 extern jmp_buf PyFPE_jbuf;
133 extern int PyFPE_counter;
134 extern double PyFPE_dummy(
void *);
136 #define PyFPE_START_PROTECT(err_string, leave_stmt) \
137 if (!PyFPE_counter++ && setjmp(PyFPE_jbuf)) { \
138 PyErr_SetString(PyExc_FloatingPointError, err_string); \
164 #define PyFPE_END_PROTECT(v) PyFPE_counter -= (int)PyFPE_dummy(&(v));
168 #define PyFPE_START_PROTECT(err_string, leave_stmt)
169 #define PyFPE_END_PROTECT(v)
Copyright 2014 Google Inc. All rights reserved.