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

Function AddStandardLibraryMacros

compiler/standard_library.cc:28–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26namespace {
27
28absl::Status AddStandardLibraryMacros(ParserBuilder& builder) {
29 // For consistency with the Parse free functions, follow the convenience
30 // option to disable all the standard macros.
31 if (builder.GetOptions().disable_standard_macros) {
32 return absl::OkStatus();
33 }
34 for (const auto& macro : Macro::AllMacros()) {
35 CEL_RETURN_IF_ERROR(builder.AddMacro(macro));
36 }
37 return absl::OkStatus();
38}
39
40} // namespace
41

Callers

nothing calls this directly

Calls 3

AllMacrosFunction · 0.85
GetOptionsMethod · 0.80
AddMacroMethod · 0.80

Tested by

no test coverage detected