Scarab
v2.9.0
Project 8 C++ Utility Library
library
external
pybind11
tests
test_cmake_build
main.cpp
Go to the documentation of this file.
1
#include <
pybind11/pybind11.h
>
2
namespace
py
=
pybind11
;
3
4
PYBIND11_MODULE
(test_cmake_build, m) {
5
m.def(
"add"
, [](
int
i
,
int
j) {
return
i + j; });
6
}
test_multiple_inheritance.i
i
Definition:
test_multiple_inheritance.py:16
pybind11
glibc defines I as a macro which breaks things, e.g., boost template names
Definition:
attr.h:15
pybind11.h
PYBIND11_MODULE
PYBIND11_MODULE(test_cmake_build, m)
Definition:
main.cpp:4
Generated by
1.8.13