Sign in
pigweed
/
third_party
/
github
/
pybind
/
pybind11_bazel
/
283e7d187bafba68d9961d37e32be100d43914cb
/
.
/
examples
/
basic
/
basic.cpp
blob: 4996ac3718db7410ebc7e4dc4239494a539284c2 [
file
] [
log
] [
blame
]
#include
<pybind11/pybind11.h>
int
add
(
int
i
,
int
j
)
{
return
i
+
j
;
}
PYBIND11_MODULE
(
basic
,
module
)
{
module
.
doc
()
=
"A basic pybind11 extension"
;
module
.
def
(
"add"
,
&
add
,
"A function that adds two numbers"
);
}