| 9 | using lt::version; |
| 10 | |
| 11 | void 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 |
no test coverage detected