blob: 3f242821c712e2a3b1146e835be4ba7e418380db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#pragma once
#include <yql/essentials/public/langver/yql_langver.h>
#include <expected>
namespace NYql {
struct TFeature {
TString Name;
TString Description;
TLangVersion MinLangVer = UnknownLangVersion;
TLangVersion MaxLangVer = UnknownLangVersion;
};
bool IsAvailableOn(
TLangVersion current,
EBackportCompatibleFeaturesMode mode,
const TFeature& feature);
std::expected<std::monostate, TString> EnsureIsAvailableOn(
TLangVersion current,
EBackportCompatibleFeaturesMode mode,
const TFeature& feature);
} // namespace NYql
|