MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / RegisterLogicalFunctions

Function RegisterLogicalFunctions

runtime/standard/logical_functions.cc:48–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46} // namespace
47
48absl::Status RegisterLogicalFunctions(FunctionRegistry& registry,
49 const RuntimeOptions& options) {
50 // logical NOT
51 CEL_RETURN_IF_ERROR(
52 (RegisterHelper<UnaryFunctionAdapter<bool, bool>>::RegisterGlobalOverload(
53 builtin::kNot, [](bool value) -> bool { return !value; }, registry)));
54
55 // Strictness
56 using StrictnessHelper = RegisterHelper<UnaryFunctionAdapter<Value, Value>>;
57 CEL_RETURN_IF_ERROR(StrictnessHelper::RegisterNonStrictOverload(
58 builtin::kNotStrictlyFalse, &NotStrictlyFalseImpl, registry));
59
60 CEL_RETURN_IF_ERROR(StrictnessHelper::RegisterNonStrictOverload(
61 builtin::kNotStrictlyFalseDeprecated, &NotStrictlyFalseImpl, registry));
62
63 return absl::OkStatus();
64}
65
66} // namespace cel

Callers 3

TESTFunction · 0.70
TEST_PFunction · 0.70

Calls

no outgoing calls

Tested by 2

TESTFunction · 0.56
TEST_PFunction · 0.56