Loading...
Searching...
No Matches
Go to the documentation of this file.
19#define PT_UNWRAP_SCOPED_CONFIG(ptr, config, tileset, return_type) \
20 auto config##_result = ptr->config(tileset); \
21 if (!config##_result.has_value()) { \
22 return ChainableResult<return_type>{ \
24 "failed to get config value '{}:{}'", \
25 FormatParam{tileset, Style::bold}, \
26 FormatParam{#config, Style::bold}}, \
29 auto config = std::move(config##_result).value();