| 46 | using namespace pybind11_tests::class_sh_trampoline_basic; |
| 47 | |
| 48 | TEST_SUBMODULE(class_sh_trampoline_basic, m) { |
| 49 | py::classh<Abase, AbaseAlias>(m, "Abase") |
| 50 | .def(py::init<int>(), py::arg("val")) |
| 51 | .def("Get", &Abase::Get) |
| 52 | .def("Add", &Abase::Add, py::arg("other_val")); |
| 53 | |
| 54 | m.def("AddInCppRawPtr", AddInCppRawPtr, py::arg("obj"), py::arg("other_val")); |
| 55 | m.def("AddInCppSharedPtr", AddInCppSharedPtr, py::arg("obj"), py::arg("other_val")); |
| 56 | m.def("AddInCppUniquePtr", AddInCppUniquePtr, py::arg("obj"), py::arg("other_val")); |
| 57 | } |