mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00:00
37 lines
782 B
C++
37 lines
782 B
C++
|
/*
|
||
|
example/example.cpp -- pybind example plugin
|
||
|
|
||
|
Copyright (c) 2015 Wenzel Jakob <wenzel@inf.ethz.ch>
|
||
|
|
||
|
All rights reserved. Use of this source code is governed by a
|
||
|
BSD-style license that can be found in the LICENSE file.
|
||
|
*/
|
||
|
|
||
|
#include "example.h"
|
||
|
|
||
|
void init_ex1(py::module &);
|
||
|
void init_ex2(py::module &);
|
||
|
void init_ex3(py::module &);
|
||
|
void init_ex4(py::module &);
|
||
|
void init_ex5(py::module &);
|
||
|
void init_ex6(py::module &);
|
||
|
void init_ex7(py::module &);
|
||
|
void init_ex8(py::module &);
|
||
|
void init_ex9(py::module &);
|
||
|
|
||
|
PYTHON_PLUGIN(example) {
|
||
|
py::module m("example", "pybind example plugin");
|
||
|
|
||
|
init_ex1(m);
|
||
|
init_ex2(m);
|
||
|
init_ex3(m);
|
||
|
init_ex4(m);
|
||
|
init_ex5(m);
|
||
|
init_ex6(m);
|
||
|
init_ex7(m);
|
||
|
init_ex8(m);
|
||
|
init_ex9(m);
|
||
|
|
||
|
return m.ptr();
|
||
|
}
|