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

◆ lila_eval()

MAYAFLUX_HOST_API bool MayaFlux::Host::Live::lila_eval ( const std::string &  code)

Evaluate a code snippet in the Lila interpreter.

Can be called after start_lila() to pre-warm the JIT state, e.g. to include community module headers before clients connect.

Parameters
codeC++ code to evaluate, e.g. "#include \"Dust.hpp\""
Returns
true if evaluation succeeded.

Definition at line 153 of file Runtime.cpp.

154{
155 std::lock_guard<std::mutex> guard(g_mutex);
156 if (g_instance) {
157 return g_instance->eval(code);
158 }
159 g_pending_evals.push_back(code);
160 return true;
161}

Referenced by lila_add_header().

+ Here is the caller graph for this function: