File: test_inter_module_2.cpp

package info (click to toggle)
nanobind 2.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 3,300 kB
  • sloc: cpp: 12,232; python: 6,315; ansic: 4,813; makefile: 22; sh: 15
file content (10 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
#include <nanobind/nanobind.h>
#include "inter_module.h"

namespace nb = nanobind;

NB_MODULE(test_inter_module_2_ext, m) {
    nb::class_<Shared>(m, "Shared");
    m.def("check_shared", &check_shared);
    m.def("increment_shared", &increment_shared);
}