FOLLY_SETTING

Accesses a defined setting. Rationale for the macro: 1) Searchability, all settings access is done via FOLLY_SETTING(...) 2) Prevents omitting trailing () by accident, which could lead to bugs like auto value = *FOLLY_SETTING_project_name;, which compiles but dereferences the function pointer instead of the setting itself.

Synopsis

Declared in <folly/settings/Settings.h>

#define FOLLY_SETTING(_project, _name)

Parameters

NameDescription
_projectProject identifier of the setting.
_nameSetting name within the project.