]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
liblua: Add loader.interpret
authorkevans <kevans@FreeBSD.org>
Sat, 3 Mar 2018 17:13:12 +0000 (17:13 +0000)
committerkevans <kevans@FreeBSD.org>
Sat, 3 Mar 2018 17:13:12 +0000 (17:13 +0000)
commit59eb711fafdaa54bebb50cbbbaa943d2a1acb922
treeb137da7be199b7f8e81cbabecea681fc6ae7b8bf
parent785f44d4561af9809e4395d1a780225f47addf12
liblua: Add loader.interpret

This allows lua to pass back a command string to be executed as if it were
typed at the loader prompt- loader tries to execute the string first as pure
lua, then parses it and gives lua a chance to intercept before it tries to
execute it itself.

This will be used to implement menu_timeout_command, among other things,
which *should* be used to execute basic loader commands independent of the
chosen interpreter.
stand/liblua/lutils.c