Skip to content

Commit 41100e6

Browse files
committed
Add no-inline attribute
1 parent 340afab commit 41100e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/pybind11/numpy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ inline numpy_internals &get_numpy_internals() {
120120
return *ptr;
121121
}
122122

123-
module_ import_numpy_core_submodule(const char *submodule_name) {
123+
PYBIND11_NOINLINE module_ import_numpy_core_submodule(const char *submodule_name) {
124124
try {
125125
return module_::import((std::string("numpy._core.") + submodule_name).c_str());
126126
} catch (error_already_set &ex) {

0 commit comments

Comments
 (0)