Package

package lua

Available on lua

Externs for lua package handling

Static variables

staticconfig:String

A string describing some compile-time configurations for packages.

staticcpath:String

The path used by require to search for a C loader.

staticloaded:Table<String, Bool>

A table used by require to control which modules are already loaded.

staticpath:String

The path used by require to search for a Lua loader.

staticpreload:Table<String, Bool>

A table to store loaders for specific modules.

staticsearchers:Table<Int, () ‑> Null<String>>

A table used by require to control how to load modules. Each entry in this table is a searcher function.

Static methods

staticloadlib(libname:String, funcname:String):Void

Dynamically links the host program with the C library libname.

staticsearchpath(name:String, path:String, ?sep:String, ?rep:String):Null<String>

Searches for the given libname in the given path funcname. A path is a string containing a sequence of templates separated by semicolons.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/Package.html