erlang / 25.0 / lib / stdlib-4.0.1 / doc / html / erl_features.html /

erl_features

Feature support.

Module erl_features was introduced in OTP 25.0.

This module contains functions for supporting features that can be enabled/disabled in Erlang. It should be considered as mostly for internal use, although there are some functions that might be useful when writing tools.

all() -> [feature()]
OTP 25.0

Return a list of all known features.

info(Feature :: feature()) -> FeatureInfoMap | no_return()
OTP 25.0

Types

Return a map containing information about the given feature.

enabled() -> [feature()]
OTP 25.0

Return a list of the features that are currently enabled. Note that the set of enabled is set during startup and can then not be changed.

used(Module :: module() | file:filename()) -> [feature()]
OTP 25.0

Return the list of features enabled when compiling the module. The module need not be loaded, but is found if it exists in the loadpath. If not all features used by the module are enabled in the runtime, loading the module is not allowed.

© 2010–2022 Ericsson AB
Licensed under the Apache License, Version 2.0.