Mercurial Hosting > luan
comparison src/luan/lib/TableLib.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 | 0594c132888b |
children | 05f8c21160ef |
comparison
equal
deleted
inserted
replaced
134:b585d0915621 | 135:3119326260ea |
---|---|
14 import luan.LuanRuntimeException; | 14 import luan.LuanRuntimeException; |
15 | 15 |
16 | 16 |
17 public final class TableLib { | 17 public final class TableLib { |
18 | 18 |
19 public static void load(LuanState luan) throws LuanException { | 19 public static final String NAME = "Table"; |
20 luan.load("Table",LOADER); | |
21 } | |
22 | 20 |
23 public static final LuanFunction LOADER = new LuanFunction() { | 21 public static final LuanFunction LOADER = new LuanFunction() { |
24 @Override public Object call(LuanState luan,Object[] args) { | 22 @Override public Object call(LuanState luan,Object[] args) { |
25 LuanTable module = new LuanTable(); | 23 LuanTable module = new LuanTable(); |
26 try { | 24 try { |