knx/examples/knxPython/pybind11/tests/test_unnamed_namespace_b.cpp
Thomas Kunze 1c6d772056 astyle
2024-09-14 11:56:47 +02:00

19 lines
357 B
C++

#include "pybind11_tests.h"
namespace
{
struct any_struct {};
} // namespace
TEST_SUBMODULE(unnamed_namespace_b, m)
{
if (py::detail::get_type_info(typeid(any_struct)) == nullptr)
{
py::class_<any_struct>(m, "unnamed_namespace_b_any_struct");
}
else
{
m.attr("unnamed_namespace_b_any_struct") = py::none();
}
}