ibbiubjutfvukbslkgdbiul

This commit is contained in:
Victor Tabary 2024-06-27 11:13:27 +02:00
parent aabb52caae
commit e605ccfecc

View File

@ -506,8 +506,7 @@ static struct Smain {
const char *lua_init_script = "local clear = require(\"clear_globals\")\n" const char *lua_init_script = "local clear = require(\"clear_globals\")\n"
"-- clear.printAllGlobals()\n" "clear.clearAllGlobals()\n";
"clear.clearAllGlobals()\n";
int call_c_function(lua_State *L); int call_c_function(lua_State *L);
@ -569,6 +568,7 @@ static int pmain(lua_State *L)
if (lua_stdin_is_tty()) { if (lua_stdin_is_tty()) {
print_version(); print_version();
print_jit_status(L); print_jit_status(L);
printf("\nYou are in a Lua sandbox. You can use the following variables:\n\e[31mprint\e[0m, \e[32mstring\e[0m, \e[33mtable\e[0m, \e[34mtonumber\e[0m, \e[35mtostring\e[0m, \e[36mtype\e[0m\n\n");
dotty(L); dotty(L);
} else { } else {
dofile(L, NULL); /* Executes stdin as a file. */ dofile(L, NULL); /* Executes stdin as a file. */