|
I 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 off echo Running batch file test.bat echo Loading Lua to run itself ... Lua test.bat exit/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 |