File: inter_module.cpp

package info (click to toggle)
nanobind 2.12.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 3,140 kB
  • sloc: cpp: 12,291; python: 6,321; ansic: 4,811; makefile: 22; sh: 15
file content (13 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "inter_module.h"

Shared create_shared() {
    return { 123 };
}

bool check_shared(const Shared &shared, int expected) {
    return shared.value == expected;
}

void increment_shared(Shared &shared) {
    ++shared.value;
}