wrap
pybind11
tests
test_unnamed_namespace_b.cpp
Go to the documentation of this file.
1
#include "
pybind11_tests.h
"
2
3
namespace
{
4
struct
any_struct {};
5
}
// namespace
6
7
TEST_SUBMODULE
(unnamed_namespace_b,
m
) {
8
if
(
py::detail::get_type_info
(
typeid
(any_struct)) ==
nullptr
) {
9
py::class_<any_struct>(
m
,
"unnamed_namespace_b_any_struct"
);
10
}
else
{
11
m
.attr(
"unnamed_namespace_b_any_struct"
) = py::none();
12
}
13
}
get_type_info
PYBIND11_NOINLINE detail::type_info * get_type_info(PyTypeObject *type)
Definition:
type_caster_base.h:188
m
Matrix3f m
Definition:
AngleAxis_mimic_euler.cpp:1
pybind11_tests.h
TEST_SUBMODULE
TEST_SUBMODULE(unnamed_namespace_b, m)
Definition:
test_unnamed_namespace_b.cpp:7
gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:07:09