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_argcaccessor — used by runFile (setupArguments).- program_
argv char** program_argvaccessor — used by runFile (setupArguments).- repl_
codegen_ cold static bool codegenColdaccessor — used by runFile.- repl_
codegen_ enabled static bool codegenaccessor — used by setupState, the requirer and runFile.- repl_
main