Skip to content

Commit

Permalink
Update class.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
andriish authored Mar 13, 2024
1 parent e2ba081 commit dbc31a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ bool is_callback_structure_constructible(CXXRecordDecl const *C)
return true;
}


/*
// call_back_function_body_template is almost like PYBIND11_OVERLOAD_INT but specify pybind11::return_value_policy::reference
// #define PYBIND11_OVERLOAD_INT(ret_type, cname, name, ...) { \
// pybind11::gil_scoped_acquire gil; \
Expand All @@ -681,7 +681,7 @@ bool is_callback_structure_constructible(CXXRecordDecl const *C)
// else return pybind11::detail::cast_safe<ret_type>(std::move(o)); \
// } \
// }

*/

const char *call_back_function_body_template = R"_(
pybind11::gil_scoped_acquire gil;
Expand Down

0 comments on commit dbc31a1

Please sign in to comment.