Module package
controlling how require finds packages.
Functions
- loadlib (libname, funcname)
-
Dynamically links the host program with the C library
libname. Inside this library, looks for a functionfuncnameand returns this function as a C function. (So,funcnamemust follow the protocol (seelua_CFunction)). This is a low-level function. It completely bypasses the package and module system. Unlikerequire, it does not perform any path searching and does not automatically adds extensions.libnamemust be the complete file name of the C library, including if necessary a path and extension.funcnamemust be the exact name exported by the C library (which may depend on the C compiler and linker used). This function is not supported by ANSI C. As such, it is only available on some platforms (Windows, Linux, Mac OS X, Solaris, BSD, plus other Unix systems that support thedlfcnstandard). - seeall (module)
-
Sets a metatable for
modulewith its__indexfield referring to the global environment, so that this module inherits values from the global environment. To be used as an option to functionmodule.