W3cubDocs

/Haxe Lua

Package

package lua

@:native("_G.package") Available on lua

Externs for lua package handling

Static variables

static config:String

A string describing some compile-time configurations for packages.

static cpath:String

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

static loaded:Table<String, Bool>

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

static path:String

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

static preload:Table<String, Bool>

A table to store loaders for specific modules.

static searchers:Table<Int, Void ‑> Null<String>>

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

Static methods

static loadlib (libname:String, funcname:String):Void

Dynamically links the host program with the C library libname.

static searchpath (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–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/lua/Package.html