MayaFlux 0.2.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 114 of file Lila.cpp.

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

References LILA_ERROR.