llarp::platform
namespace for platform feature detection constexprs
Attributes
| Name | |
|---|---|
| constexpr bool | is_linux are we linux ? |
| constexpr bool | with_systemd building with systemd enabled ? |
| constexpr bool | is_freebsd are we freebsd ? |
| constexpr bool | is_android are we an android platform ? |
| constexpr bool | is_simulation are we running with pybind simulation mode enabled? |
| constexpr bool | has_systemd do we have systemd support ? |
| constexpr bool | is_mobile are we a mobile phone ? |
| constexpr bool | supports_ipv6 does this platform support native ipv6 ? |
Attributes Documentation
variable is_linux
constexpr bool is_linux =
false;
are we linux ?
variable with_systemd
constexpr bool with_systemd =
false;
building with systemd enabled ?
variable is_freebsd
constexpr bool is_freebsd =
false;
are we freebsd ?
variable is_android
constexpr bool is_android =
false;
are we an android platform ?
variable is_simulation
constexpr bool is_simulation =
false;
are we running with pybind simulation mode enabled?
variable has_systemd
constexpr bool has_systemd = is_linux and with_systemd and not(is_android);
do we have systemd support ?
variable is_mobile
constexpr bool is_mobile = is_android;
are we a mobile phone ?
variable supports_ipv6
constexpr bool supports_ipv6 = true;
does this platform support native ipv6 ?
Updated on 2026-01-10 at 22:49:45 +0000