Platform-specific Lua Library. Provides some platform-specific functions for the Lua target, such as conversion from Haxe types to native types and vice-versa.

Static methods

staticfillArray<T> (itr:Void ‑> T):Array<T>

Fills an array with the result of a simple iterator.

staticisShellAvailable ():Bool

Simple test for the presence of an available shell.

staticinlinepatternQuote (str:String):String

Perform Lua-style pattern quoting on a given string.

staticinlineprint (v:Dynamic):Void

Print the specified value on the default output.

staticinlineprintln (v:Dynamic):Void

Print the specified value on the default output followed by a newline character.

staticinlinetableToArray<T> (t:Table<Int, T>, ?length:Int):Array<T>

Copies the table argument and converts it to an Array

staticinlinetableToObject<T> (t:Table<String, T>):Dynamic<T>

Copies the table argument and converts it to an Object.