Mercurial Hosting > luan
comparison core/src/luan/modules/BasicLuan.java @ 404:d55e873e1f0d
metatables now only apply to tables
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 29 Apr 2015 07:04:40 -0600 |
parents | 62b457c50594 |
children | 8937263f59f6 |
comparison
equal
deleted
inserted
replaced
403:637f7ad85654 | 404:d55e873e1f0d |
---|---|
75 return new Object[]{i,val}; | 75 return new Object[]{i,val}; |
76 } | 76 } |
77 }; | 77 }; |
78 } | 78 } |
79 | 79 |
80 public static LuanTable get_metatable(LuanState luan,Object obj) { | 80 public static LuanTable get_metatable(LuanTable table) { |
81 return luan.getMetatable(obj); | 81 return table.getMetatable(); |
82 } | 82 } |
83 | 83 |
84 public static LuanTable set_metatable(LuanTable table,LuanTable metatable) { | 84 public static LuanTable set_metatable(LuanTable table,LuanTable metatable) { |
85 table.setMetatable(metatable); | 85 table.setMetatable(metatable); |
86 return table; | 86 return table; |