Re: making a set of functions available to all scripts
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: making a set of functions available to all scripts
- From: Luo Hei <luo_hei@...>
- Date: 2007年11月08日 10:51:59 -0500
Terry Bayne escribió:
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".
You mean writing the functions in C? I think it is not a solution. The
functions must be written in Lua. At least, I think so.
Perhaps I can put all functions in a file and execute it before all
other scripts?
--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can’t take the sky from me
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com