example.cpp 1.43 KB
Newer Older
Wenzel Jakob's avatar
Wenzel Jakob committed
1
2
3
/*
    example/example.cpp -- pybind example plugin

4
    Copyright (c) 2016 Wenzel Jakob <wenzel.jakob@epfl.ch>
Wenzel Jakob's avatar
Wenzel Jakob committed
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

    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 &);
Wenzel Jakob's avatar
Wenzel Jakob committed
21
void init_ex10(py::module &);
22
void init_ex11(py::module &);
23
void init_ex12(py::module &);
24
void init_ex13(py::module &);
Wenzel Jakob's avatar
Wenzel Jakob committed
25
void init_ex14(py::module &);
Wenzel Jakob's avatar
Wenzel Jakob committed
26
void init_ex15(py::module &);
27
void init_ex16(py::module &);
Sergey Lyskov's avatar
Sergey Lyskov committed
28
void init_ex17(py::module &);
Klemens Morgenstern's avatar
Klemens Morgenstern committed
29
void init_ex18(py::module &);
30
void init_ex19(py::module &);
31
void init_issues(py::module &);
Wenzel Jakob's avatar
Wenzel Jakob committed
32

33
34
35
36
#if defined(PYBIND11_TEST_EIGEN)
    void init_eigen(py::module &);
#endif

37
PYBIND11_PLUGIN(example) {
Wenzel Jakob's avatar
Wenzel Jakob committed
38
39
40
41
42
43
44
45
46
47
48
    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);
Wenzel Jakob's avatar
Wenzel Jakob committed
49
    init_ex10(m);
50
    init_ex11(m);
51
    init_ex12(m);
52
    init_ex13(m);
Wenzel Jakob's avatar
Wenzel Jakob committed
53
    init_ex14(m);
Wenzel Jakob's avatar
Wenzel Jakob committed
54
    init_ex15(m);
55
    init_ex16(m);
Sergey Lyskov's avatar
Sergey Lyskov committed
56
    init_ex17(m);
Klemens Morgenstern's avatar
Klemens Morgenstern committed
57
    init_ex18(m);
58
    init_ex19(m);
59
    init_issues(m);
Wenzel Jakob's avatar
Wenzel Jakob committed
60

61
62
63
64
    #if defined(PYBIND11_TEST_EIGEN)
        init_eigen(m);
    #endif

Wenzel Jakob's avatar
Wenzel Jakob committed
65
66
    return m.ptr();
}