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

Method RegisterCompilerLibrary

env/env.h:44–49  ·  view source on GitHub ↗

Registers a `CompilerLibrary` with the environment. Note that the library does not automatically get added to a `Compiler`. `NewCompiler` relies on `Config` to determine which libraries to load.

Source from the content-addressed store, hash-verified

42 // does not automatically get added to a `Compiler`. `NewCompiler` relies
43 // on `Config` to determine which libraries to load.
44 void RegisterCompilerLibrary(
45 absl::string_view name, absl::string_view alias, int version,
46 absl::AnyInvocable<CompilerLibrary() const> library_factory) {
47 extension_registry_.RegisterCompilerLibrary(name, alias, version,
48 std::move(library_factory));
49 }
50
51 void SetDescriptorPool(
52 std::shared_ptr<const google::protobuf::DescriptorPool> descriptor_pool) {

Callers 2

SetUpMethod · 0.45

Calls

no outgoing calls

Tested by 1

SetUpMethod · 0.36