File: hook_test.cpp

package info (click to toggle)
cppimport 22.08.02-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: python: 756; cpp: 71; ansic: 31; sh: 8; makefile: 4
file content (9 lines) | stat: -rw-r--r-- 162 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
/*cppimport*/
<%
setup_pybind11(cfg)
%>
#include <pybind11/pybind11.h>

PYBIND11_MODULE(hook_test, m) {
    m.def("sub", [] (int i, int j) { return i - j; } );
}