2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

Added JIT debugging hooks

[SVN r10507]
This commit is contained in:
Dave Abrahams
2001-07-02 00:16:28 +00:00
parent a32dedd16c
commit 884b59a0b3
4 changed files with 42 additions and 0 deletions

View File

@@ -6,6 +6,16 @@ namespace python = boost::python;
#include "noncopyable.h"
# ifdef BOOST_MSVC // fixes for JIT debugging
# include <windows.h>
extern "C" void structured_exception_translator(unsigned int, EXCEPTION_POINTERS*)
{
throw;
}
extern "C" void (*old_translator)(unsigned int, EXCEPTION_POINTERS*)
= _set_se_translator(structured_exception_translator);
# endif
BOOST_PYTHON_MODULE_INIT(noncopyable_export)
{
try