#include <cstdlib>
#include <optional>
#include <string_view>
#include <string>
Go to the source code of this file.
◆ CONFIG_VALUE
| #define CONFIG_VALUE |
( |
|
name, |
|
|
|
fallback_lambda |
|
) |
| |
Value: ([](auto&& f) { \
if
constexpr (std::string_view(#name) != std::string_view(
STRINGIFY(name))) { \
return f(std::optional<std::string_view>{
STRINGIFY(name)}); \
} else { \
} \
})(fallback_lambda)
auto resolve_config_impl(std::string_view name, F &&fallback)
Definition at line 22 of file resolver.hpp.
◆ STRINGIFY
◆ STRINGIFY_IMPL
| #define STRINGIFY_IMPL |
( |
|
x | ) |
#x |