[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Register static lib C module
- From: Henrik Ilgen <henrik.ilgen@...>
- Date: Mon, 29 Aug 2016 17:59:23 +0200
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.
On 29.08.2016 17:53, John Dunn wrote:
> Is there a way to register a C function that would be called when someone calls require("mymodule")? I have a module that doesn't have any supporting Lua code and I'm just compiling it directly into my application so it's bypassing the usual module mechanism.