fix: define _DEBUG macro to 1 on redefinition (#5639)

According to the msvc documentation, the macro should be defined to 1:
https://learn.microsoft.com/en-us/cpp/preprocessor/predefined-macros
This commit is contained in:
Tobias Leibner
2025-05-07 03:36:42 +02:00
committed by GitHub
parent 099583c5fb
commit a265a4cf31

View File

@@ -50,7 +50,7 @@
#endif
#if defined(PYBIND11_DEBUG_MARKER)
# define _DEBUG
# define _DEBUG 1
# undef PYBIND11_DEBUG_MARKER
#endif