| 45 | #endif |
| 46 | |
| 47 | TEST_SUBMODULE(const_name, m) { |
| 48 | m.def("const_name_tests", const_name_tests); |
| 49 | |
| 50 | #if defined(PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY) |
| 51 | m.def("underscore_tests", underscore_tests); |
| 52 | #else |
| 53 | m.attr("underscore_tests") = "PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY not defined."; |
| 54 | #endif |
| 55 | } |