example.cpp 1.05 KB
Newer Older
Wenzel Jakob's avatar
Wenzel Jakob committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
    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 &);
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 &);
26
void init_issues(py::module &);
Wenzel Jakob's avatar
Wenzel Jakob committed
27

28
PYBIND11_PLUGIN(example) {
Wenzel Jakob's avatar
Wenzel Jakob committed
29
30
31
32
33
34
35
36
37
38
39
    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
40
    init_ex10(m);
41
    init_ex11(m);
42
    init_ex12(m);
43
    init_ex13(m);
Wenzel Jakob's avatar
Wenzel Jakob committed
44
    init_ex14(m);
45
    init_issues(m);
Wenzel Jakob's avatar
Wenzel Jakob committed
46
47
48

    return m.ptr();
}