diff core/src/luan/LuanState.java @ 224:05eb2837ddbf

change LuanTable.put() to not return old value git-svn-id: https://luan-java.googlecode.com/svn/trunk@225 21e917c8-12df-6dd8-5cb6-c86387c605b9
author fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9>
date Mon, 21 Jul 2014 09:27:06 +0000
parents ec016471c6eb
children 4dfa86dbca45
line wrap: on
line diff
--- a/core/src/luan/LuanState.java	Mon Jul 21 06:38:01 2014 +0000
+++ b/core/src/luan/LuanState.java	Mon Jul 21 09:27:06 2014 +0000
@@ -99,6 +99,11 @@
 		return t==null ? null : t.get(op);
 	}
 
+	public final Object getHandler(String op,LuanTable table) {
+		LuanTable t = table.getMetatable();
+		return t==null ? null : t.get(op);
+	}
+
 	private static LuanTableImpl newMetatable() {
 		LuanTableImpl metatable = new LuanTableImpl();
 		try {