Actions Libraries

This group of actions is used to enable parts of Lua's standard library.  XLua adds two more packages to the standard set: bitop and jit.  Additionally 3rd-party libraries can be loaded as external C modules.

Open All Libraries

Opens all lua's system libraries, and the bitop library. This does not open the included JIT library.

Parameters

None.

Open External C Module

C Modules are special DLL files that can add functionality to Lua. They can be included in Lua code with the "require" statement, or they can be included with this action.

This action allows you to browse for a DLL to open, and asks for the package name of the C Module. The DLL should be located in the same directory of your application file, or in a relative subdirectory. If "Include External Files" is enabled in your application properties, the DLL file will be embedded in your compiled EXE (but this is not true if you define the path with an expression).

The package name should be provided to you with the module's instructions. The package name is the same identifier used in "require" statements, and typically follows the same conventions.

Parameters

Filename Path to DLL file
String Package name

Open base

Opens the Base library. The Base library will be opened by default. The base library include standard functions such as print and pairs.  It also contains the coroutines.

Parameters

None.

Open 'package'

Opens the package library. This is required for "require" functionality. Some actions may automatically open this library for you.

Parameters

None.

Open 'table'

Opens the table library.

Parameters

None.

Open 'io'

Opens the I/O library.

Parameters

None.

Open 'os'

Opens the OS library.

Parameters

None.

Open 'string'

Opens the String library.

Parameters

None.

Open 'math'

Opens the math library.

Parameters

None.

Open 'debug'

Opens the debug library.

Parameters

None.

Open 'bit'

Opens the bitop library. This is an additional library included with XLua that adds support for bitwise operations.

Parameters

None.

Open 'jit'

Opens the LuaJIT library. This is an additional library included with XLua that adds support for interacting with the embedded LuaJIT engine.

Parameters

None.

Enable LuaJIT

Turns on the LuaJIT engine. XLua is built with LuaJIT sources, but by default operates with the JIT engine disabled. This will also include the LuaJIT library.

Parameters

None.

Copyright 2010 Justin Aquadro