We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f604eb8 commit 87f6dcaCopy full SHA for 87f6dca
include/boost/python/detail/wrap_python.hpp
@@ -21,6 +21,9 @@
21
// 01 Mar 01 define PyObject_INIT() for Python 1.x (Dave Abrahams)
22
23
#ifdef _DEBUG
24
+#if _DEBUG
25
+#define _DEBUG_HAS_VALUE
26
+#endif
27
# ifndef BOOST_DEBUG_PYTHON
28
# ifdef _MSC_VER
29
// VC8.0 will complain if system headers are #included both with
@@ -206,7 +209,11 @@ typedef int pid_t;
206
209
207
210
#ifdef DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H
208
211
# undef DEBUG_UNDEFINED_FROM_WRAP_PYTHON_H
212
+#if defined(_DEBUG_HAS_VALUE)
213
+# define _DEBUG 1
214
+#else
215
# define _DEBUG
216
217
# ifdef _CRT_NOFORCE_MANIFEST_DEFINED_FROM_WRAP_PYTHON_H
218
# undef _CRT_NOFORCE_MANIFEST_DEFINED_FROM_WRAP_PYTHON_H
219
# undef _CRT_NOFORCE_MANIFEST
0 commit comments