Rename example20 -> example-numpy-dtypes

This commit is contained in:
Ivan Smirnov 2016-07-20 00:24:00 +01:00
parent f9c0defed7
commit 5db82353f7
6 changed files with 6 additions and 5 deletions

1
.gitignore vendored
View File

@ -31,3 +31,4 @@ MANIFEST
.DS_Store .DS_Store
/dist /dist
/build /build
/cmake/

View File

@ -26,7 +26,7 @@ set(PYBIND11_EXAMPLES
example-stl-binder-vector.cpp example-stl-binder-vector.cpp
example-eval.cpp example-eval.cpp
example-custom-exceptions.cpp example-custom-exceptions.cpp
example20.cpp example-numpy-dtypes.cpp
issues.cpp issues.cpp
) )

View File

@ -1,5 +1,5 @@
/* /*
example/example20.cpp -- Usage of structured numpy dtypes example/example-numpy-dtypes.cpp -- Structured and compound NumPy dtypes
Copyright (c) 2016 Ivan Smirnov Copyright (c) 2016 Ivan Smirnov
@ -169,7 +169,7 @@ void print_dtypes() {
std::cout << to_str(py::dtype_of<StringStruct>()) << std::endl; std::cout << to_str(py::dtype_of<StringStruct>()) << std::endl;
} }
void init_ex20(py::module &m) { void init_ex_numpy_dtypes(py::module &m) {
PYBIND11_NUMPY_DTYPE(SimpleStruct, x, y, z); PYBIND11_NUMPY_DTYPE(SimpleStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(PackedStruct, x, y, z); PYBIND11_NUMPY_DTYPE(PackedStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(NestedStruct, a, b); PYBIND11_NUMPY_DTYPE(NestedStruct, a, b);

View File

@ -29,7 +29,7 @@ void init_ex_inheritance(py::module &);
void init_ex_stl_binder_vector(py::module &); void init_ex_stl_binder_vector(py::module &);
void init_ex_eval(py::module &); void init_ex_eval(py::module &);
void init_ex_custom_exceptions(py::module &); void init_ex_custom_exceptions(py::module &);
void init_ex20(py::module &); void init_ex_numpy_dtypes(py::module &);
void init_issues(py::module &); void init_issues(py::module &);
#if defined(PYBIND11_TEST_EIGEN) #if defined(PYBIND11_TEST_EIGEN)
@ -73,7 +73,7 @@ PYBIND11_PLUGIN(example) {
init_ex_stl_binder_vector(m); init_ex_stl_binder_vector(m);
init_ex_eval(m); init_ex_eval(m);
init_ex_custom_exceptions(m); init_ex_custom_exceptions(m);
init_ex20(m); init_ex_numpy_dtypes(m);
init_issues(m); init_issues(m);
#if defined(PYBIND11_TEST_EIGEN) #if defined(PYBIND11_TEST_EIGEN)