Rename PYBIND11_DTYPE to PYBIND11_NUMPY_DTYPE

This commit is contained in:
Ivan Smirnov
2016-07-02 16:18:42 +01:00
parent 5afe9df30a
commit 5412a05cf0
3 changed files with 7 additions and 7 deletions

View File

@@ -101,9 +101,9 @@ void print_dtypes() {
}
void init_ex20(py::module &m) {
PYBIND11_DTYPE(SimpleStruct, x, y, z);
PYBIND11_DTYPE(PackedStruct, x, y, z);
PYBIND11_DTYPE(NestedStruct, a, b);
PYBIND11_NUMPY_DTYPE(SimpleStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(PackedStruct, x, y, z);
PYBIND11_NUMPY_DTYPE(NestedStruct, a, b);
m.def("create_rec_simple", &create_recarray<SimpleStruct>);
m.def("create_rec_packed", &create_recarray<PackedStruct>);