| 324 | |
| 325 | #ifdef _WIN32 |
| 326 | static void DoDebugBreak() |
| 327 | { |
| 328 | __try |
| 329 | { |
| 330 | // This breakpoint exception is used by several D3D return value checking functions |
| 331 | // If you get, here, go up the stack and see what D3D function failed |
| 332 | DebugBreak(); |
| 333 | } |
| 334 | __except( GetExceptionCode() == EXCEPTION_BREAKPOINT ? EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH ) |
| 335 | { |
| 336 | } |
| 337 | } |
| 338 | #endif |
| 339 | |
| 340 | static PyObject* PyBreakInDebugger( PyObject* module, PyObject* args ) |