Make compiler installed by default for standard platforms.
This commit is contained in:
@@ -32,7 +32,6 @@ import org.luaj.vm2.Lua;
|
||||
import org.luaj.vm2.LuaFunction;
|
||||
import org.luaj.vm2.LuaTable;
|
||||
import org.luaj.vm2.LuaValue;
|
||||
import org.luaj.vm2.compiler.LuaC;
|
||||
import org.luaj.vm2.lib.JsePlatform;
|
||||
import org.luaj.vm2.luajc.LuaJC;
|
||||
|
||||
@@ -65,7 +64,6 @@ public class lua {
|
||||
|
||||
// new lua state
|
||||
_G = JsePlatform.debugGlobals();
|
||||
LuaC.install();
|
||||
|
||||
// process args
|
||||
boolean interactive = (args.length == 0);
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
******************************************************************************/
|
||||
package org.luaj.vm2.lib;
|
||||
|
||||
import org.luaj.vm2.compiler.LuaC;
|
||||
import org.luaj.vm2.LuaTable;
|
||||
import org.luaj.vm2.LuaThread;
|
||||
import org.luaj.vm2.lib.jse.JseBaseLib;
|
||||
@@ -48,6 +49,7 @@ public class JsePlatform {
|
||||
_G.load(new JseOsLib());
|
||||
_G.load(new LuajavaLib());
|
||||
LuaThread.setGlobals(_G);
|
||||
LuaC.install();
|
||||
return _G;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,10 +63,6 @@ public class LuaScriptEngine implements ScriptEngine, Compilable {
|
||||
private static final String __ARGV__ = "arg";
|
||||
private static final String __FILENAME__ = "?";
|
||||
|
||||
static {
|
||||
LuaC.install();
|
||||
}
|
||||
|
||||
private static final ScriptEngineFactory myFactory = new LuaScriptEngineFactory();
|
||||
|
||||
private ScriptContext defaultContext;
|
||||
|
||||
Reference in New Issue
Block a user