Make compiler installed by default for standard platforms.

This commit is contained in:
James Roseborough
2010-05-14 04:00:05 +00:00
parent ceb53253fb
commit 47b33aea08
17 changed files with 37 additions and 46 deletions

View File

@@ -1,8 +1,7 @@
import org.luaj.vm2.*;
import org.luaj.vm2.lib.*;
import org.luaj.vm2.compiler.LuaC;
import org.luaj.vm2.LuaValue;
import org.luaj.vm2.lib.JsePlatform;
public class SampleJseMain {
@@ -11,7 +10,6 @@ public class SampleJseMain {
String script = "examples/lua/hello.lua";
// create an environment to run in
LuaC.install();
LuaValue _G = JsePlatform.standardGlobals();
_G.get("dofile").call( LuaValue.valueOf(script) );
}