Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11_abseil
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_abseil
Commits
9aa816a0
Commit
9aa816a0
authored
Apr 06, 2022
by
Michael Chinen
Committed by
Copybara-Service
Apr 06, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Internal change
PiperOrigin-RevId: 439880200
parent
11761446
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pybind11_abseil/import_status_module.cc
+3
-3
pybind11_abseil/import_status_module.h
+1
-1
No files found.
pybind11_abseil/import_status_module.cc
View file @
9aa816a0
...
...
@@ -9,12 +9,12 @@
namespace
pybind11
{
namespace
google
{
module
ImportStatusModule
(
bool
bypass_regular_import
)
{
module
_
ImportStatusModule
(
bool
bypass_regular_import
)
{
if
(
!
PyGILState_Check
())
{
pybind11_fail
(
"ImportStatusModule() PyGILState_Check() failure."
);
}
if
(
bypass_regular_import
)
{
auto
m
=
reinterpret_borrow
<
module
>
(
PyImport_AddModule
(
auto
m
=
reinterpret_borrow
<
module
_
>
(
PyImport_AddModule
(
PYBIND11_TOSTRING
(
PYBIND11_ABSEIL_STATUS_MODULE_PATH
)));
if
(
!
internal
::
IsStatusModuleImported
())
{
internal
::
RegisterStatusBindings
(
m
);
...
...
@@ -22,7 +22,7 @@ module ImportStatusModule(bool bypass_regular_import) {
// else no-op because bindings are already loaded.
return
m
;
}
return
module
::
import
(
PYBIND11_TOSTRING
(
PYBIND11_ABSEIL_STATUS_MODULE_PATH
));
return
module
_
::
import
(
PYBIND11_TOSTRING
(
PYBIND11_ABSEIL_STATUS_MODULE_PATH
));
}
}
// namespace google
...
...
pybind11_abseil/import_status_module.h
View file @
9aa816a0
...
...
@@ -18,7 +18,7 @@ namespace google {
// Imports the bindings for the status types. This is meant to only be called
// from a PYBIND11_MODULE definition. The Python GIL must be held when calling
// this function (enforced).
module
ImportStatusModule
(
bool
bypass_regular_import
=
true
);
module
_
ImportStatusModule
(
bool
bypass_regular_import
=
true
);
}
// namespace google
}
// namespace pybind11
...
...
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