8#define CONST_NAME_TESTS(TEST_FUNC, IUT) \
9 std::string TEST_FUNC(int selector) { \
12 return IUT("").text; \
14 return IUT("A").text; \
16 return IUT("Bd").text; \
18 return IUT("Cef").text; \
20 return IUT<int>().text;
\
22 return IUT<std::string>().text; \
24 return IUT<true>("T1", "T2").text;
\
26 return IUT<false>("U1", "U2").text;
\
29 return IUT<true>(IUT("D1"), IUT("D2")).text; \
32 return IUT<false>(IUT("E1"), IUT("E2")).text; \
34 return IUT("KeepAtEnd").text; \
38 throw std::runtime_error("Invalid selector value."); \
43#ifdef PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY
48 m.def(
"const_name_tests", const_name_tests);
50#if defined(PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY)
51 m.def(
"underscore_tests", underscore_tests);
53 m.attr(
"underscore_tests") =
"PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY not defined.";
#define TEST_SUBMODULE(name, variable)
#define CONST_NAME_TESTS(TEST_FUNC, IUT)