Skip to main content

Module run_code

Module run_code 

Source
Expand description

static std::string runCode(lua_State* L, const std::string& source) (CLI/src/Web.cpp:71-140).

Compiles source, loads it into L, runs it on a fresh thread, prints any results, and returns “” on success or a formatted error (with source:line prefix and stack backtrace) on failure.

Functions§

run_code