ports/devel/nanobind/files/my_ext.cpp
Yuri Victorovich 810746005e devel/nanobind: update 2.2.0-8 → 2.4.0
Reported by:	portscout
2024-12-06 02:02:23 -08:00

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);
}