Fixes to luajc bytecode generation.

This commit is contained in:
James Roseborough
2012-09-19 03:19:55 +00:00
parent 4bf132c01e
commit 0f70a8e962
10 changed files with 43 additions and 27 deletions

View File

@@ -39,11 +39,11 @@ import org.luaj.vm2.luajc.LuaJC;
public class TestLuaJC {
// create the script
public static String name = "script";
public static String script =
"for n,p in ipairs({77}) do\n"+
" print('n,p',n,p)\n"+
"end\n";
public static String script =
"function f1(a) print( 'f1:', a ) return a end\n" +
"b = f1()\n" +
"return b";
public static void main(String[] args) throws Exception {
System.out.println(script);
try {