Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 84574:2f7c4df5cc46
Issue #18408: errors.c: in debug mode, calling PyErr_BadInternalCall() now
fails with an assertion error
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Fri, 12 Jul 2013 00:37:30 +0200 |
| parents | e3ec8b176a80 |
| children | a685f4c6e0b6 |
comparison
equal
deleted
inserted
replaced
| 84573:d9446c2a2fd4 | 84574:2f7c4df5cc46 |
|---|---|
| 673 export the entry point for existing object code: */ | 673 export the entry point for existing object code: */ |
| 674 #undef PyErr_BadInternalCall | 674 #undef PyErr_BadInternalCall |
| 675 void | 675 void |
| 676 PyErr_BadInternalCall(void) | 676 PyErr_BadInternalCall(void) |
| 677 { | 677 { |
| 678 assert(0 && "bad argument to internal function"); | |
| 678 PyErr_Format(PyExc_SystemError, | 679 PyErr_Format(PyExc_SystemError, |
| 679 "bad argument to internal function"); | 680 "bad argument to internal function"); |
| 680 } | 681 } |
| 681 #define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__) | 682 #define PyErr_BadInternalCall() _PyErr_BadInternalCall(__FILE__, __LINE__) |
| 682 | 683 |
