[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: making a set of functions available to all scripts
- From: Terry Bayne <tbayne@...>
- Date: Thu, 8 Nov 2007 08:48:17 -0500
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?