Mercurial Hosting > luan
comparison core/src/luan/modules/PackageLuan.java @ 195:24ede40ee0aa
make MetatableGetter DeepCloneable, scoped, and secure
git-svn-id: https://luan-java.googlecode.com/svn/trunk@196 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Thu, 03 Jul 2014 08:19:48 +0000 |
parents | cf939124461a |
children | be0275bda373 |
comparison
equal
deleted
inserted
replaced
194:08df375e2e5f | 195:24ede40ee0aa |
---|---|
79 if( mod==null ) { | 79 if( mod==null ) { |
80 mod = true; | 80 mod = true; |
81 loaded.put(modName,mod); | 81 loaded.put(modName,mod); |
82 } | 82 } |
83 } | 83 } |
84 } | |
85 if( mod instanceof LuanTable ) { | |
86 LuanTable modTbl = (LuanTable)mod; | |
87 if( modTbl.metatableGetter != null ) | |
88 luan.addMetatableGetter(modTbl.metatableGetter); | |
84 } | 89 } |
85 return mod; | 90 return mod; |
86 } | 91 } |
87 | 92 |
88 public static Object[] search(LuanState luan,String modName) throws LuanException { | 93 public static Object[] search(LuanState luan,String modName) throws LuanException { |