Search in sources :

Example 1 with DebugLib

use of org.luaj.vm2.lib.DebugLib in project LuaViewSDK by alibaba.

the class JsePlatform method debugGlobals.

/** Create standard globals including the {@link debug} library.
     *
     * @return Table of globals initialized with the standard JSE and debug libraries
     * @see #standardGlobals()
     * @see JsePlatform
     * @see JmePlatform
     * @see DebugLib
     */
public static Globals debugGlobals() {
    Globals globals = standardGlobals();
    globals.load(new DebugLib());
    return globals;
}
Also used : Globals(org.luaj.vm2.Globals) DebugLib(org.luaj.vm2.lib.DebugLib)

Example 2 with DebugLib

use of org.luaj.vm2.lib.DebugLib in project LuaViewSDK by alibaba.

the class JsePlatform method debugGlobals.

/** Create standard globals including the {@link debug} library.
     *
     * @return Table of globals initialized with the standard JSE and debug libraries
     * @see #standardGlobals()
     * @see JsePlatform
     * @see JmePlatform
     * @see DebugLib
     */
public static Globals debugGlobals(Globals globals) {
    standardGlobals(globals);
    globals.load(new DebugLib());
    return globals;
}
Also used : DebugLib(org.luaj.vm2.lib.DebugLib)

Aggregations

DebugLib (org.luaj.vm2.lib.DebugLib)2 Globals (org.luaj.vm2.Globals)1