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

◆ eval_file()

bool Lila::Lila::eval_file ( const std::string &  filepath)

Evaluates a C++ code file directly.

Parameters
filepathPath to the file to execute
Returns
True if evaluation succeeded, false otherwise

Definition at line 109 of file Lila.cpp.

110{
111 if (!m_interpreter) {
112 LILA_ERROR(Emitter::SYSTEM, "Cannot eval file: interpreter not initialized");
113 return false;
114 }
115
116 auto result = m_interpreter->eval_file(filepath);
117 return result.success;
118}
#define LILA_ERROR(emitter, msg)
std::unique_ptr< ClangInterpreter > m_interpreter
Embedded Clang interpreter.
Definition Lila.hpp:165

References LILA_ERROR.