MayaFlux 0.3.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 118 of file Lila.cpp.

119{
120 if (!m_interpreter) {
121 LILA_ERROR(Emitter::SYSTEM, "Cannot eval file: interpreter not initialized");
122 return false;
123 }
124
125 auto result = m_interpreter->eval_file(filepath);
126 return result.success;
127}
#define LILA_ERROR(emitter, msg)
std::unique_ptr< ClangInterpreter > m_interpreter
Embedded Clang interpreter.
Definition Lila.hpp:200

References LILA_ERROR.