lua-users home
lua-l archive

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


In 4.1, you can simply use lua_loadstring.
In 4.0, you can wrap you string inside "return function () XXX end",
where "XXX" is your string.
Run lua_dostring once on the extended string and then lua_call the result
many times. (The result is left on the stack after lua_dostring.)
--lhf