mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 21:30:31 -04:00
8 lines
123 B
C++
8 lines
123 B
C++
#include <nanobind/nanobind.h>
|
|
|
|
int add(int a, int b) { return a + b; }
|
|
|
|
NB_MODULE(my_ext, m) {
|
|
m.def("add", &add);
|
|
}
|
|
|