Mercurial Hosting > luan
comparison src/luan/Lua.java @ 37:8a57ebfdfd78
add JavaLib
git-svn-id: https://luan-java.googlecode.com/svn/trunk@38 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 20 Dec 2012 02:36:07 +0000 |
parents | 2a35154aec14 |
children | e3624b7cd603 |
comparison
equal
deleted
inserted
replaced
36:2a35154aec14 | 37:8a57ebfdfd78 |
---|---|
63 if( obj instanceof LuaFunction ) | 63 if( obj instanceof LuaFunction ) |
64 return (LuaFunction)obj; | 64 return (LuaFunction)obj; |
65 throw new LuaException( "attempt to call a " + type(obj) + " value" ); | 65 throw new LuaException( "attempt to call a " + type(obj) + " value" ); |
66 } | 66 } |
67 | 67 |
68 public static LuaTable getMetatable(Object obj) { | |
69 if( !(obj instanceof LuaTable) ) | |
70 return null; | |
71 LuaTable table = (LuaTable)obj; | |
72 return table.getMetatable(); | |
73 } | |
74 | |
75 } | 68 } |