lua-users home
lua-l archive

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

The way I usually do this is to embedded the functions in the host application, and then register those functions with the Lua engine.  That way they are available for all scripts and are "pre-loaded".


> I need a set of functions to be available to scripts executed by a
> lua interpreter running in a host application. If possible, I would
> like to have such functions preloaded before the scripts are
> executed to avoid disk access. How can I do it?