Add SWIG_PYTHON_NO_DEBUG macro for building Debug wrappers against the Python Debug dll
This commit is contained in:
parent
abc27fd157
commit
5cdfc503e1
12 changed files with 45 additions and 13 deletions
|
|
@ -1,6 +1,12 @@
|
|||
%insert(runtime) %{
|
||||
/* Python.h has to appear first */
|
||||
#include <Python.h>
|
||||
#if defined(_DEBUG) && defined(SWIG_PYTHON_NO_DEBUG)
|
||||
/* Use debug wrappers with the Python release dll */
|
||||
# undef _DEBUG
|
||||
# include <Python.h>
|
||||
# define _DEBUG
|
||||
#else
|
||||
# include <Python.h>
|
||||
#endif
|
||||
%}
|
||||
|
||||
%insert(runtime) "swigrun.swg"; /* SWIG API */
|
||||
|
|
@ -13,4 +19,4 @@
|
|||
|
||||
#if defined(SWIGPYTHON_BUILTIN)
|
||||
%insert(runtime) "builtin.swg"; /* Specialization for classes with single inheritance */
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue