MCPcopy Create free account
hub / github.com/pybind/pybind11 / wrapGetLuggage

Function wrapGetLuggage

tests/exo_planet_c_api.cpp:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27
28extern "C" PyObject *wrapGetLuggage(PyObject * /*self*/, PyObject *traveler) {
29 const auto *cpp_traveler = pybind11_conduit_v1::get_type_pointer_ephemeral<
30 pybind11_tests::test_cpp_conduit::Traveler>(traveler);
31 if (cpp_traveler == nullptr) {
32 return nullptr;
33 }
34 return PyUnicode_FromString(cpp_traveler->luggage.c_str());
35}
36
37extern "C" PyObject *wrapGetPoints(PyObject * /*self*/, PyObject *premium_traveler) {
38 const auto *cpp_premium_traveler = pybind11_conduit_v1::get_type_pointer_ephemeral<

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected