4 #if defined(_MSC_VER) && _MSC_VER < 1910 6 # pragma warning(disable: 4503) // warning C4503: decorated name length exceeded, name was truncated 20 #define TEST_SUBMODULE(name, variable) \ 21 void test_submodule_##name(py::module &); \ 22 test_initializer name(#name, test_submodule_##name); \ 23 void test_submodule_##name(py::module &variable) 36 void set(
int set) {
i =
set; }
48 IncType(IncType &&) =
delete;
49 IncType &operator=(
const IncType &) =
delete;
50 IncType &operator=(IncType &&) =
delete;
void(*)(py::module &) Initializer
IncType(const IncType &other)
Dummy type which is not exported anywhere – something to trigger a conversion error.
static handle cast(RValueCaster &&, return_value_policy, handle)
return_value_policy
Approach used to cast a previously unknown C++ instance into a Python object.
static handle cast(const RValueCaster &, return_value_policy, handle)
#define PYBIND11_TYPE_CASTER(type, py_name)
#define PYBIND11_NAMESPACE_END(name)
#define PYBIND11_NAMESPACE_BEGIN(name)