Download python/pybind11/tests/test_const_name.cpp from camenduru/ncnn: direct link, hf CLI and curl.
- Browser
- Download file 3.83 kB
-
https://huggingface.co/camenduru/ncnn/resolve/main/python/pybind11/tests/test_const_name.cpp
- Command line
-
hf download hf://camenduru/ncnn/python/pybind11/tests/test_const_name.cpp
-
curl -L -o test_const_name.cpp https://huggingface.co/camenduru/ncnn/resolve/main/python/pybind11/tests/test_const_name.cpp
3.83 kB
| // Copyright (c) 2021 The Pybind Development Team. | |
| // All rights reserved. Use of this source code is governed by a | |
| // BSD-style license that can be found in the LICENSE file. | |
| // IUT = Implementation Under Test | |
| CONST_NAME_TESTS(const_name_tests, py::detail::const_name) | |
| CONST_NAME_TESTS(underscore_tests, py::detail::_) | |
| TEST_SUBMODULE(const_name, m) { | |
| m.def("const_name_tests", const_name_tests); | |
| m.def("underscore_tests", underscore_tests); | |
| m.attr("underscore_tests") = "PYBIND11_DETAIL_UNDERSCORE_BACKWARD_COMPATIBILITY not defined."; | |
| } | |