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
4bacd7de
Commit
4bacd7de
authored
Aug 20, 2017
by
Dean Moldovan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove noinline from internal static locals
parent
669aa294
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/pybind11/detail/internals.h
+2
-2
No files found.
include/pybind11/detail/internals.h
View file @
4bacd7de
...
@@ -127,7 +127,7 @@ struct type_info {
...
@@ -127,7 +127,7 @@ struct type_info {
/// 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`.
PYBIND11_NOINLINE
inline
internals
*&
get_internals_ptr
()
{
inline
internals
*&
get_internals_ptr
()
{
static
internals
*
internals_ptr
=
nullptr
;
static
internals
*
internals_ptr
=
nullptr
;
return
internals_ptr
;
return
internals_ptr
;
}
}
...
@@ -196,7 +196,7 @@ PYBIND11_NOINLINE inline internals &get_internals() {
...
@@ -196,7 +196,7 @@ PYBIND11_NOINLINE inline internals &get_internals() {
}
}
/// Works like `internals.registered_types_cpp`, but for module-local registered types:
/// Works like `internals.registered_types_cpp`, but for module-local registered types:
PYBIND11_NOINLINE
inline
type_map
<
type_info
*>
&
registered_local_types_cpp
()
{
inline
type_map
<
type_info
*>
&
registered_local_types_cpp
()
{
static
type_map
<
type_info
*>
locals
{};
static
type_map
<
type_info
*>
locals
{};
return
locals
;
return
locals
;
}
}
...
...
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