File: inter_module.h

package info (click to toggle)
nanobind 2.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,060 kB
  • sloc: cpp: 11,838; python: 5,862; ansic: 4,820; makefile: 22; sh: 15
file content (14 lines) | stat: -rw-r--r-- 295 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <nanobind/nb_defs.h>

#if defined(SHARED_BUILD)
#  define EXPORT_SHARED NB_EXPORT
#else
#  define EXPORT_SHARED NB_IMPORT
#endif

struct EXPORT_SHARED Shared {
    int value;
};

extern EXPORT_SHARED Shared create_shared();
extern EXPORT_SHARED bool check_shared(const Shared &shared);