| 299 | } |
| 300 | |
| 301 | absl::Status AddMathExtensionMacros(ParserBuilder& builder, int version) { |
| 302 | for (const auto& m : math_macros()) { |
| 303 | // At the moment, all macros are supported in all versions. When we add a |
| 304 | // new macro, we must add a version check here. |
| 305 | CEL_RETURN_IF_ERROR(builder.AddMacro(m)); |
| 306 | } |
| 307 | return absl::OkStatus(); |
| 308 | } |
| 309 | |
| 310 | } // namespace |
| 311 |
no test coverage detected