Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
f93cd0aa
Commit
f93cd0aa
authored
Jun 10, 2019
by
Jeffrey Quesnelle
Committed by
Wenzel Jakob
Jun 10, 2019
Browse files
PYBIND11_TLS_REPLACE_VALUE should use macro argument value in Python 3.7+ (#1683)
parent
2b045757
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
include/pybind11/detail/internals.h
include/pybind11/detail/internals.h
+1
-1
No files found.
include/pybind11/detail/internals.h
View file @
f93cd0aa
...
...
@@ -23,7 +23,7 @@ inline PyObject *make_object_base_type(PyTypeObject *metaclass);
#if PY_VERSION_HEX >= 0x03070000
# define PYBIND11_TLS_KEY_INIT(var) Py_tss_t *var = nullptr
# define PYBIND11_TLS_GET_VALUE(key) PyThread_tss_get((key))
# define PYBIND11_TLS_REPLACE_VALUE(key, value) PyThread_tss_set((key), (
tstat
e))
# define PYBIND11_TLS_REPLACE_VALUE(key, value) PyThread_tss_set((key), (
valu
e))
# define PYBIND11_TLS_DELETE_VALUE(key) PyThread_tss_set((key), nullptr)
#else
// Usually an int but a long on Cygwin64 with Python 3.x
...
...
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