mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 05:39:53 +00:00
modularized logic in preceding change, fixed issue with char (fixes #150)
This commit is contained in:
@@ -15,4 +15,7 @@ void init_issues(py::module &m) {
|
||||
|
||||
// #137: const char* isn't handled properly
|
||||
m2.def("print_cchar", [](const char *string) { std::cout << string << std::endl; });
|
||||
|
||||
// #150: char bindings broken
|
||||
m2.def("print_char", [](char c) { std::cout << c << std::endl; });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user