lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Anyone ever extract out of luac.c the specific code need to on-the-fly
> precompile a lua script (ie take a ptr to text and get back a buffer
> of byte compiled byte code)?

In Lua 5 you can use loadstring (or loadfile) in combination with
string.dump.  See the manual for details.

--
Wim