[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to add users libraries
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 30 Nov 2005 20:57:24 -0200
> I was embedding Lua into an RTOS and needed to add my own user
> libraries. I decided to modify linit.c to allow me to hook in another
> set of libraries. My question is, what would be the best way to add your
> own libraries as I can not dynamically load the libraries. I have
> attached my modified version of linit.c in hopes you can enlighten me on
> a better method.
If the user libraries are statically defined, the simplest way is just
to add entries to lualibs. If they are dynamically defined, then your
solution seems ok.
--lhf