Core LibraryalphaAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

constant libtmux-cxx latest

LIBTMUX_VERSION_MAJOR

The same version, available to the preprocessor.

Source and package
Qualified name
version.hpp::LIBTMUX_VERSION_MAJOR
Namespace
version.hpp
Package
libtmux-cxx
Source
include/libtmux/version.hpp
LIBTMUX_VERSION_MAJOR

Description#

library_version() answers what was linked; these answer what was compiled against, which is the question a consumer has to ask before using something that may not exist yet:

#if LIBTMUX_VERSION_MAJOR > 0 || LIBTMUX_VERSION_MINOR >= 2

Written here rather than generated into the build directory, so that include/libtmux/ stays self-contained for anyone reading or vendoring it without CMake. A test compares LIBTMUX_VERSION_STRING against library_version(), which the build takes from the VERSION file, so the two cannot drift apart unnoticed.

Esc

Type to search.

Reference previewOpen reference