comparison src/luan/lib/TableLib.java @ 124:f537ff5e511d

minor cleanup git-svn-id: https://luan-java.googlecode.com/svn/trunk@125 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Fri, 06 Jun 2014 03:41:04 +0000
parents 735708619119
children 0594c132888b
comparison
equal deleted inserted replaced
123:d7be9b3abf1a 124:f537ff5e511d
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 final String NAME = "Table"; 19 public static void load(LuanState luan) throws LuanException {
20 luan.load("Table",LOADER);
21 }
20 22
21 public static final LuanFunction LOADER = new LuanFunction() { 23 public static final LuanFunction LOADER = new LuanFunction() {
22 @Override public Object call(LuanState luan,Object[] args) { 24 @Override public Object call(LuanState luan,Object[] args) {
23 LuanTable module = new LuanTable(); 25 LuanTable module = new LuanTable();
24 try { 26 try {