Mercurial Hosting > luan
comparison src/luan/tools/CmdLine.java @ 130:0594c132888b
cleanup
git-svn-id: https://luan-java.googlecode.com/svn/trunk@131 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Tue, 10 Jun 2014 02:43:40 +0000 |
parents | 486a0641bca4 |
children | 15a8e6588f3c |
comparison
equal
deleted
inserted
replaced
129:486a0641bca4 | 130:0594c132888b |
---|---|
14 | 14 |
15 public static void main(String[] args) { | 15 public static void main(String[] args) { |
16 LuanState luan = LuanState.newStandard(); | 16 LuanState luan = LuanState.newStandard(); |
17 try { | 17 try { |
18 LuanFunction standalone = (LuanFunction)luan.get("Basic.standalone"); | 18 LuanFunction standalone = (LuanFunction)luan.get("Basic.standalone"); |
19 luan.JAVA.call(standalone,"standalone",args); | 19 luan.call(standalone,args); |
20 } catch(LuanException e) { | 20 } catch(LuanException e) { |
21 // System.err.println(e.getMessage()); | 21 // System.err.println(e.getMessage()); |
22 e.printStackTrace(); | 22 e.printStackTrace(); |
23 System.exit(-1); | 23 System.exit(-1); |
24 } | 24 } |