[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Register static lib C module
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 29 Aug 2016 13:30:12 -0300
> 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