Skip to main content

Module repl_main

Module repl_main 

Source
Expand description

Faithful port of the C++ int replMain(int argc, char** argv) from CLI/src/Repl.cpp. Parses the CLI options, installs the assertion handler, then either starts the interactive REPL (no file arguments) or runs each source file on a fresh lua_State, optionally enabling profiling / coverage / counters / native codegen, returning failed ? 1 : 0.

Functions§

program_argc
static int program_argc accessor — used by runFile (setupArguments).
program_argv
char** program_argv accessor — used by runFile (setupArguments).
repl_codegen_cold
static bool codegenCold accessor — used by runFile.
repl_codegen_enabled
static bool codegen accessor — used by setupState, the requirer and runFile.
repl_main