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;
Dummy type which is not exported anywhere – something to trigger a conversion error.
glibc defines I as a macro which breaks things, e.g., boost template names
constexpr descr< N - 1 > _(char const(&text)[N])
Wrapper for Python extension modules.
IncType(const IncType &other)
detail::initimpl::constructor< Args... > init()
Binds an existing constructor taking arguments Args...
#define NAMESPACE_END(name)
static handle cast(const RValueCaster &, return_value_policy, handle)
return_value_policy
Approach used to cast a previously unknown C++ instance into a Python object.
void(*)(py::module &) Initializer
#define NAMESPACE_BEGIN(name)
static handle cast(RValueCaster &&, return_value_policy, handle)
#define PYBIND11_TYPE_CASTER(type, py_name)