MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ load_library()

void Lila::ClangInterpreter::load_library ( const std::string &  path)

Load a shared library into the JIT symbol table.

Parameters
pathFull path to the shared library.

Definition at line 339 of file ClangInterpreter.cpp.

340{
341 if (!m_impl->interpreter) {
342 LILA_WARN(Emitter::INTERPRETER,
343 std::string("Cannot load library: interpreter not initialized: ") + path);
344 return;
345 }
346 if (auto err = m_impl->interpreter->LoadDynamicLibrary(path.c_str())) {
347 m_last_error = "Failed to load " + path + ": " + llvm::toString(std::move(err));
348 LILA_ERROR(Emitter::INTERPRETER, m_last_error);
349 return;
350 }
351 LILA_DEBUG(Emitter::INTERPRETER, std::string("Loaded library: ") + path);
352}
#define LILA_WARN(emitter, msg)
#define LILA_ERROR(emitter, msg)
#define LILA_DEBUG(emitter, msg)
std::unique_ptr< Impl > m_impl
Internal implementation details.

References LILA_DEBUG, LILA_ERROR, LILA_WARN, m_impl, and m_last_error.