lua-users home
lua-l archive

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


Hi John,

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.

Cheers,

Henrik

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. 
>
>