lua-users home
lua-l archive

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


> 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