Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
e9d6e879
Commit
e9d6e879
authored
Nov 11, 2018
by
Karl Haubenwallner
Committed by
Wenzel Jakob
Nov 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a debug flag to the PYBIND11_INTERNALS_VERSION (#1549)
parent
63c2a972
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
include/pybind11/detail/internals.h
+8
-2
No files found.
include/pybind11/detail/internals.h
View file @
e9d6e879
...
@@ -140,6 +140,12 @@ struct type_info {
...
@@ -140,6 +140,12 @@ struct type_info {
/// Tracks the `internals` and `type_info` ABI version independent of the main library version
/// Tracks the `internals` and `type_info` ABI version independent of the main library version
#define PYBIND11_INTERNALS_VERSION 3
#define PYBIND11_INTERNALS_VERSION 3
#if defined(_DEBUG)
# define PYBIND11_BUILD_TYPE "_debug"
#else
# define PYBIND11_BUILD_TYPE ""
#endif
#if defined(WITH_THREAD)
#if defined(WITH_THREAD)
# define PYBIND11_INTERNALS_KIND ""
# define PYBIND11_INTERNALS_KIND ""
#else
#else
...
@@ -147,10 +153,10 @@ struct type_info {
...
@@ -147,10 +153,10 @@ struct type_info {
#endif
#endif
#define PYBIND11_INTERNALS_ID "__pybind11_internals_v" \
#define PYBIND11_INTERNALS_ID "__pybind11_internals_v" \
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND "__"
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND
PYBIND11_BUILD_TYPE
"__"
#define PYBIND11_MODULE_LOCAL_ID "__pybind11_module_local_v" \
#define PYBIND11_MODULE_LOCAL_ID "__pybind11_module_local_v" \
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND "__"
PYBIND11_TOSTRING(PYBIND11_INTERNALS_VERSION) PYBIND11_INTERNALS_KIND
PYBIND11_BUILD_TYPE
"__"
/// Each module locally stores a pointer to the `internals` data. The data
/// Each module locally stores a pointer to the `internals` data. The data
/// itself is shared among modules with the same `PYBIND11_INTERNALS_ID`.
/// itself is shared among modules with the same `PYBIND11_INTERNALS_ID`.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment