File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -140,17 +140,23 @@ struct type_info {
140
140
// / Tracks the `internals` and `type_info` ABI version independent of the main library version
141
141
#define PYBIND11_INTERNALS_VERSION 3
142
142
143
+ #if defined(_DEBUG)
144
+ # define PYBIND11_BUILD_TYPE " _debug"
145
+ #else
146
+ # define PYBIND11_BUILD_TYPE " "
147
+ #endif
148
+
143
149
#if defined(WITH_THREAD)
144
150
# define PYBIND11_INTERNALS_KIND " "
145
151
#else
146
152
# define PYBIND11_INTERNALS_KIND " _without_thread"
147
153
#endif
148
154
149
155
#define PYBIND11_INTERNALS_ID " __pybind11_internals_v" \
150
- PYBIND11_TOSTRING (PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND "__"
156
+ PYBIND11_TOSTRING (PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND PYBIND11_BUILD_TYPE "__"
151
157
152
158
#define PYBIND11_MODULE_LOCAL_ID " __pybind11_module_local_v" \
153
- PYBIND11_TOSTRING (PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND "__"
159
+ PYBIND11_TOSTRING (PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND PYBIND11_BUILD_TYPE "__"
154
160
155
161
// / Each module locally stores a pointer to the `internals` data. The data
156
162
// / itself is shared among modules with the same `PYBIND11_INTERNALS_ID`.
You can’t perform that action at this time.
0 commit comments