Mercurial Hosting > luan
comparison src/luan/Luan.java @ 135:3119326260ea
revert rev 125 and only preload Java
git-svn-id: https://luan-java.googlecode.com/svn/trunk@136 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Wed, 11 Jun 2014 06:30:46 +0000 |
parents | b585d0915621 |
children | fcb81fa2df0d |
comparison
equal
deleted
inserted
replaced
134:b585d0915621 | 135:3119326260ea |
---|---|
10 LuanState luan = LuanState.newStandard(); | 10 LuanState luan = LuanState.newStandard(); |
11 try { | 11 try { |
12 LuanFunction standalone = (LuanFunction)BasicLib.load_java_resource(luan,"luan/tools/cmd_line.luan"); | 12 LuanFunction standalone = (LuanFunction)BasicLib.load_java_resource(luan,"luan/tools/cmd_line.luan"); |
13 luan.call(standalone,args); | 13 luan.call(standalone,args); |
14 } catch(LuanException e) { | 14 } catch(LuanException e) { |
15 // System.err.println(e.getMessage()); | 15 System.err.println(e.getMessage()); |
16 e.printStackTrace(); | 16 // e.printStackTrace(); |
17 System.exit(-1); | 17 System.exit(-1); |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 public static Object first(Object obj) { | 21 public static Object first(Object obj) { |