lua-users home
lua-l archive

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


> 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