MCPcopy Create free account
hub / github.com/arvidn/libtorrent / bind_version

Function bind_version

bindings/python/src/version.cpp:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9using lt::version;
10
11void bind_version()
12{
13 scope().attr("__version__") = version();
14
15#if TORRENT_ABI_VERSION == 1
16 scope().attr("version") = lt::version_str;
17 scope().attr("version_major") = LIBTORRENT_VERSION_MAJOR;
18 scope().attr("version_minor") = LIBTORRENT_VERSION_MINOR;
19#endif
20}
21

Callers 1

BOOST_PYTHON_MODULEFunction · 0.85

Calls 1

versionFunction · 0.85

Tested by

no test coverage detected