|
I'm using DOS command "cls" for clearing the screen :-)
http://lua-users.org/lists/lua-l/2018-07/msg00404.htmlI just add a simple 2 lines patch to luaL_loadfile()If a file start with @, Lua skip it all, to <ESC> (ascii 27)Example:@echo offecho Running batch file test.batecho Loading Lua to run itself ...Lua test.batexit/b<ESC>print("Lua code start here ...")The patch made the Lua DLL code smaller, and Lua run faster. Weird ...Batch file also look cleaner, without the hackish ::_:: --[[ stuff