| 26 | namespace { |
| 27 | |
| 28 | absl::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 |
nothing calls this directly
no test coverage detected