23[[nodiscard]] MAYAFLUX_HOST_API
bool start_lila(uint16_t port = 9090);
36MAYAFLUX_HOST_API
void stop_lila(
bool clear_persistent_store =
false);
46[[nodiscard]] MAYAFLUX_HOST_API uint16_t
lila_port();
57MAYAFLUX_HOST_API std::optional<std::filesystem::path>
find_include_dir(
const std::string& filename);
111MAYAFLUX_HOST_API
bool lila_eval(
const std::string& code);
bool lila_active()
True if a Lila instance is currently running in this process.
void stop_lila(bool clear_persistent_store)
Stop the running Lila interpreter and TCP server.
std::optional< std::filesystem::path > find_include_dir(const std::string &filename)
Find the directory containing a header staged for inclusion.
bool start_lila(uint16_t port)
Start a Lila interpreter and TCP server inside this process.
uint16_t lila_port()
TCP port of the running Lila instance, or 0 if none is running.
bool lila_eval(const std::string &code)
Evaluate a code snippet in the Lila interpreter.
bool lila_add_header(const std::string &filename)
Stage a header for inclusion in the Lila interpreter.
void lila_load_library(const std::string &path)
Load a shared library into the JIT symbol table at runtime.
void lila_add_compile_flag(const std::string &flag)
Add a compile flag to the Lila interpreter.
void lila_add_include_path(const std::string &path)
Add an include path to the Lila interpreter.