[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Register static lib C module
- From: Xavier Wang <weasley.wx@...>
- Date: Tue, 30 Aug 2016 14:08:29 +0800
2016-08-30 0:30 GMT+08:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>> The very first thing require() does is to look up if the required module
>> can be found in package.loaded - so if you store your module there
>> manually, you shouldn't have any problems.
>
> To help you in that task, use luaL_requiref:
> https://www.lua.org/manual/5.3/manual.html#luaL_requiref
>
I have made a proposal before, to load a module static linked into
applications automatically[1].
[1]: http://lua-users.org/lists/lua-l/2016-03/msg00251.html
--
regards,
Xavier Wang.