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

Function AddMathExtensionMacros

extensions/math_ext_decls.cc:301–308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301absl::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

Callers 1

MathCompilerLibraryFunction · 0.85

Calls 2

math_macrosFunction · 0.85
AddMacroMethod · 0.80

Tested by

no test coverage detected